Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form not releasing in init
Message
De
20/03/2006 16:31:24
 
 
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:
01106005
Vues:
23
Hi Naomi,
Thanks for the info. I need it to run the code in the button, so I just added the return .F. after the call to the button and it works, thanks.


>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform