Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fox 2.6 udf validations to vfp and other 2.6 - vfp updat
Message
From
06/08/1999 14:26:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00250611
Message ID:
00250812
Views:
17
>To All:
>
>How do you translate a fox 2.6 udf used in a validate clause in a GET statement to the vfp equivalent where the udf lets the user select an appropriate value in a BROWSE window and stuffs it back into the field via a KEYBOARD buffer?

Your valid event should look like this:

< 2.6 snippet without the Keyb comes here>
This.value=alias.field
return .t.

>and, is there somewhere a document listing the fox 2.6 coding techniques and their equivalent in vfp?

I think everybody found a proprietary way - I rolled my own as well. Sometimes I had to break the When and Valid code in two parts: the part which should check whether the user should be allowed to get focus into/out of the control remains in when and valid, but the other code which was there for different reasons (like refreshing other values, recalculating etc) got moved into .GotFocus/.LostFocus, or sometimes into form's custom methods, if it was called from other places as well.

Generally, the various code in Show clauses goes to Refresh, Message goes into .message. If you had any setup/cleanup, it should go to Load & Init / queryunload, destroy & release. YMMV - depending on what tricks you were using in 2.6.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform