Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnSaveNew
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00408832
Message ID:
00408850
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform