Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form not releasing in init
Message
 
 
À
20/03/2006 16:17:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01105993
Message ID:
01106000
Vues:
32
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform