Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I thought that procedures were supposed to wait.
Message
From
12/08/1999 13:03:07
 
 
To
12/08/1999 11:27:56
Brent Knight
Progressive Impressions International
Bloomington, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00253011
Message ID:
00253084
Views:
23
>I am running a bunch of code under the click method, and from this method I am calling another form using a DO. In the help it is stated that when you run a DO control is passed to the new form and the calling form waits to complete itself until control is passed back. This is not happening for me.
>

In order for this to happen, the form that you call must be modal - set the WindowType property of the form that you call to 1 (Modal).

>Here is my code.
>
>IF (lncount > 1)
> thisform.hide
> DO form frmlistl.scx WITH UPPER(lntemplast) thisform.show()
> goto lnrecno
>ENDIF
>
>The program is going on to the lnreco and giving me a syntax error because it is a NULL value. Can anyone tell me what is going on here??? Any help would be apprecated.
>

Where is lnRecNo set? If you set it in the called form, it goes away when the form method that defines it goes away; if you want the form to return it, you must use a modal form and return the value, and you need to add a TO clause to catch the value when the form is exited.

>Thanks
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform