Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning form value
Message
 
 
À
11/07/2003 20:48:40
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00809202
Message ID:
00809493
Vues:
54
>Marcia, (or anyone else who may be able to help)
>
>I tried your suggestion
>>>DO FORM Owner NAME oForm LINKED WITH 'MODAL' TO lnMyVar NOSHOW
>oForm.Show(1)<<
>but I still got the error message "The TO clause can only be used with modal Forms and FormSets".
>
>I removed the 'TO lnMyVar' code from the command and the form runs fine, but then I had the problem of how to capture the return value, so I placed 'lnMyVar=oForm.nRetVal' after the Show() command, but then I get the error message "OFORM is not an object", which suggests that oForm was released when the form was released, even if I initialise oForm before calling the form.
>
>Is there any other way of capturing the form return value?
>
>Many thanks,

Alan,

Your idea would work if instead of releasing the form you hide it, retrieve the value of the nRetVal property and than release it.
DO FORM Owner NAME oForm LINKED NOSHOW
oForm.Show(1)
lnMyVar=oForm.nRetVal
oForm.Release()
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform