Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing form in INIT method
Message
From
07/02/2001 10:46:37
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00473278
Message ID:
00473409
Views:
23
>>I have a form which requires a parameter be passed to it. What I tried was
>>
>>LPARAMER lcstkno
>>
>>IF PCOUNT() = 0
>> WAIT WINDOW 'message'
>> Thisform.Release
>>ELSE
>> setup code
>>ENDIF
>>
>>It does not work. Why not? What is correct method of aborting the form?
>
>Try:
>LPARAMER lcstkno
>IF PCOUNT() = 0
>     WAIT WINDOW 'message'
>     return .F.
>ELSE
>     setup code
>ENDIF
>If you return .F. from the Init of the form or a control, it will not instantiate.
>
>HTH.

Thanks, Return .F. was only variant I did not try.

P.S. how did you get background color in your response?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform