Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing objects on forms from procedures
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00716687
Message ID:
00716690
Views:
14
You can pass the object as a parameter to your routine.
* InteractiveChange Method
MySuperFunction(This)
* 
FUNCTION MySuperFunction(toThis)
toThis.Caption = "test"
...
>Is there a trick to referencing objects on forms from a procedure located in the main.prg? I'm able to code [formname.objectname.click] and this works, but [formname.objectname.caption="test"] does not. If there is not an easy way to make that work, what I really need is a way to run the same routine from many fields in the InteractiveChange procedure of each field. Don't want to copy it to each field as it changes often. Thanks for any help from whoever has tackled this before!
>Colombo.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform