Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal form not releasing in init
Message
 
 
To
20/03/2006 16:17:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01105993
Message ID:
01106000
Views:
31
This message has been marked as the solution to the initial question of the thread.
Hi Beth,

I'm not sure if it's helpful or not, but usually if you want to relase the form from Init, you would return .f. rather than clicking on some buttons...

>Hi All,
>
>I have a form that can be called 2 ways, with or without a passed variable.
>
>do form 'reorder.scx'
>or
>do form 'reorder.scx' with .T.
>
>in the init of the form, I process the data, then if the parameter is .T., I run the exit code
>
>form.init()
>PARAMETERS plrun
>LOCAL llok, lncnt, lnloop
>IF VARTYPE(gareorder) = "C"
>  &&  < process code here >
>ENDIF
>IF plrun
>  THISFORM.command1.CLICK()  && This is the save and Exit Button
>ENDIF
>
>button.click()
>LOCAL lncnt, llok, lnloop
>  && < preprocess code here >
>= processreorder()
>THISFORM.RELEASE()
>
>
>but the form stays up.
>
>What could be the cause? I had this working at one time. I am thinking a Set command of somekind.
>
>Any thought?
>
>TIA
>Beth
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform