Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Auto Close a form?
Message
 
 
To
24/01/2009 21:09:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01376662
Message ID:
01376797
Views:
11
Hi Robert,

You should always check for type('_VFP.ActiveForm.ActiveControl.name') = 'C' before attempting to use code involving it. Add this check in front of that code to avoid the error.

>Greg,
>
>I downloaded your class and it seems to be exactly what I am looking for (Thanks!). However, I am sometimes getting the following error:
>
>"Member ACTIVECONTROL does not evaluate to an object" The debugger opens at the following line of code:
>
>
>lcPos = TRANSFORM(lnCursorX)+","+TRANSFORM(lnCursorY) ;
>		  +","+TRANSFORM(MROW("",3))+","+TRANSFORM(MCOL("",3));
>		  +","+transform(_vfp.ActiveForm.Name) ;
>		  +","+TRANSFORM(_vfp.ActiveForm.ActiveControl.Name)
>
>
>This error only seems to occur only when I return to the VFP9 after working in another application window for a while. If the VFP program remains the active application, I don't seem to see the error. Have you got any idea how I can eliminate this error?
>
>TIA,
>Robert
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform