Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OnSaveNew
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00408832
Message ID:
00408850
Vues:
23
Greg,

The OnSaveNew method isn't called until after the Save method. So, it will probably be too late for what you want.

You could place code in the PreSaveHook that will use GETFLDSTATE() to determine if this is an appended record, and then run your code.

>I presume that OBIZOBJ.ONSAVENEW is the correct place to put code that I want to execute only the first time that the record is saved?
>
>Specifically, I need to evaluate an expression at runtime and then write that expression to a field.
>
>Greg

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform