Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Auto Close a form?
Message
From
25/01/2009 06:43:22
 
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:
01376826
Views:
17
>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.
>

Thanks for the feedback. I will update the code to include the condition you are suggested.

>>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
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform