Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form return value
Message
De
06/08/2007 21:58:08
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Form return value
Divers
Thread ID:
01246371
Message ID:
01246371
Vues:
119
I have a form which is called using DO FORM MyForm WITH param1,param2 TO lcResultString. If param2='VALIDATE' I wish to validate param1 only and not place the form in interactive mode. The Init() code is something like this...

IF param2='VALIDATE'
form.ReturnProperty = Validate(param1) && returns success value
RETURN .F. && form is not displayed and execution moves to form.Unload()
ELSE
Form displays in interactive mode.
ENDIF

When the form is in interactive mode, a character string is returned and everything is fine. However, if Init() returns .F., lcResultString in the above DO FORM command is always .F., no matter what the value of form.ReturnProperty is. I have traced code execution and form.ReturnProperty has the correct value (eg. 'VALID') right up to the RETURN line of the Unload() event.

Has anyone any idea how to overcome this problem? In case it is relevant, I am using VFP9 SP1. The form is definitely modal.

Any help would be appreciated.

Alan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform