>>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?