Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing form in INIT method
Message
 
To
06/02/2001 22:02:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00473278
Message ID:
00473602
Views:
17
>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?

Return False in the method INIT.
* Init
LPARAMER lcstkno
IF PCOUNT() = 0
   WAIT WINDOW 'message' NOWAIT
   RETURN .F.
ELSE
   * setup code
ENDIF
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform