Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suspending execution of program
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00467430
Message ID:
00467440
Views:
10
If you change the oFilePick.Show line to oFilePick.Show(1), the form will be modal and stop execution until the user exits the form. If you need to return a value then you could modify the cmdSelect button to Hide the form (not release it). Execution will continue at that point and after you retrieve the value(s) you want from the oFilePick controls, release the form.

HTH.

>Still didn't display correctly - hope this does it.
>
>>correction.
>>
>>>I have created a class based on a couple of 3rd Party ActiveX controls purchased from www.mabry.com for selecting folders/files for import into my app. The class is instantiated at startup and I call the hide and show methods to hide and show the form class as necessary.
>>>
>>>In the code used for importing the files, I change some of the properties of oFilePick - then I show the oFilePick form class. What I'd like to do is pause execution of the rest of the import routine until the user actually selects a file for import - or cancels the import.
>>>
>>>***************************
>>>
>>>
>>>oFilePick.Caption = "Please select the Switch Report to import"
>>>oFilePick.cmdSelect.Caption = "Import the Selected SWITCH File"
>>>oFilePick.Show()
>>>
>>>** I'd like to pause things at this point.
>>>
>>>DO CASE . . . .
>>>
>>>**************************
>>>
>>>Any ideas as to how I could go about suspending execution of the program until the user selects a file or cancels the import from the oFilePick form class? I had a look at SUSPEND and RESUME and I'm not sure if it would be appropriate to use these commands - or even how I would use them in this cicrumstance.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform