Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting oldval and newval of all fields on screen
Message
From
28/12/2000 15:33:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457522
Message ID:
00457561
Views:
28
>Is there a way to get all the oldvals, the newvals, and the field name of all the fields on screen through some kind of loop structure into an array? I have almost 64 fields on screen (using pageframes) and I wanted to find an easier way of looking at the old and new values in the fields without writing out ...
>nick patel

Yes,
See GETFLDSTATE(),
it gives you back field changes reported (returned) as string dough, but this could be be easily fixed (converted to an array). Other then that you can follow little bit different aproach (if you have to menu tables involved on a single form) which is to create class - object scanner which will scan all (data bound) objects on a form, examine them one by one and then do whatever.
I have something like this if you are interested, for any purpose (goes trough out all nested containers) and then I am subclassing it for different purposes.

Reggards
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform