Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO FORM x TO variable
Message
From
02/12/2011 00:41:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
DO FORM x TO variable
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01530137
Message ID:
01530137
Views:
164
Hi Experts,

Got this error:

The TO clause can only be used with modal Forms and FormSets (Error 1982)

My form settings were as follows:
AutoCenter = .T.
Desktop = .T.
ShowWindow = 2
WindowType = 1
I also have code in the Unload event, that RETURNs the value.

My syntax:
DO FORM myModalForm TO myVar
This causes the form to appear quickly then proceed on to the Unload event.

When I change ShowWindow to 0 or 1, it will behave as desired. Why? How come?

Thanks again,
Dennis
Next
Reply
Map
View

Click here to load this message in the networking platform