Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing a method via a reference in a table
Message
 
To
22/07/1997 10:22:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00041112
Message ID:
00041152
Views:
29
Hey, have you ever heard of Hungarian notation? :>. I'm a stickler for that type of thing.

I couldn't understand, are you trying to call a method on the current form/object? If so, you would:

**********************************
use correct table
find correct row
lcMethod = yourtable.methodfield
this.&lcMethod or thisform.&lcMethod or this.parent.&lcMethod, whichever.
**********************************

Give me more info on what you are trying to do if this is incorrect.


>I am trying to access a method for which I have a reference to it in a field of a table.
>This is done so I can keep all my validation fn's of a page frame driven by
>a table for flexibility.
>
>
>
>The data in the field is:
>do wizard1.fpcommandbutton2._translate WITH _ls_status_i
>
>
>This is the code I use to access it:
>Local _ls_status_i, _ls_Prog_s
>
>* point to the correct record
>use (THISFORM._p_verifydbf_s) order pagenum alias genwiz
>seek (THISFORM.fppageframesingle1.activepage)
>
>* save data to standard structure (db, struct, inifile)
>_ls_Prog_s = genwiz.vermeth1
>&_ls_Prog_s
>
>Thanx
>Jim Tubridy
>tubridja@pb.com

Michael G. Emmons
memmons@nc.rr.com
Previous
Reply
Map
View

Click here to load this message in the networking platform