Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid routine testin for empty.
Message
De
02/09/1997 09:59:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
30/08/1997 17:42:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00047811
Message ID:
00048020
Vues:
21
> 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 Brian, I think you should call "thisform.cmdButton1.click()" instead. Command buttons react to click, and hotkey is just another way of firing the click event, so keypress is not interesting in this case.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform