Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid routine testin for empty.
Message
De
01/09/1997 20:38:05
Glenn Mcburney
Doe(Ni) Information Systems Unit
Belfast, Royaume Uni
 
 
À
01/09/1997 05:27:02
Glenn Mcburney
Doe(Ni) Information Systems Unit
Belfast, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00047811
Message ID:
00047969
Vues:
23
>>I am creating a text box which need data entry to be valid, in the valid rmethod I have placed the following:
>>
>>IF EMPTY(THIS.value)
>> =MESSAGEBOX(NOTEMPTY_LOC, ;
>> MB_ICONINFORMATION ,;
>> TRACERV_LOC)
>>
>> RETURN .F.
>>ENDIF
>>
>>This reacts fine but I also have a search "cmdButton1" which when pressed fires the valid routine. I have tried to place a "thisform.cmdButton1.keypress()" ahead of this but this allways equates to .T. Is there a way to activate the search button click routine before the valid routine fires?
>>
>>TIA, Brian Machtolff
>
>Place an additional IF statement aorund your code to check if a global var is .T., default it to .T. but change to .F. when the command button is accessed.

In reply to myself this may not work, depending on method fire order, an alternative would be to use KeyCode for example if keypress = return or tab do the validation otherwise just go direct to the command button code.
Glenn
DOE(NI), Belfast
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform