Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to an object
Message
From
07/01/2008 07:50:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
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:
01279886
Views:
15
>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

Get a reference to form first, then:

oForm.TimerReference...

Getting reference to a form might not be easy always so passing it as a parameter or saving somewhere (or looping forms to find via some property(ies)) might be needed. _screen.ActiveForm would work if that's the active form.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform