Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to an object
Message
 
To
07/01/2008 04:31:56
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01279859
Message ID:
01279861
Views:
12
>Hi,
>How can I reference to an object from outside the object?
>I have a form with a timer on it but when I try to enable this timer from a prg, I'm always having error 1923.
>(Interestingly enough, I've used it for some time without any problem upto now.)
>
>Thanks,
>Tamas

The usual syntax (if the object is in Form) is FormName[.parentContainer].Object
So you could use that:
FormName.Timer1.Enabled = .t.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform