Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Show and Hide
Message
De
04/04/2000 00:43:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
03/04/2000 23:31:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00354770
Message ID:
00354814
Vues:
21
>Hi all,
>
>I have this code in a valid event from a textbox
>
>select artigos
>if empty(this.value)
>do form search_listbox
>this.value=artigos.c_codigo
>thisform.refresh()
>endif
>
>when it run's, it open's the second form and go back, but if i have in in a button it works ok, show the form and i do my selections, then i close the form and go back.
>
>Is there a way to stop the form when it shows up in valid event?
>
>
>Thanks' in Advance
>
>João batista


Joâo,
Make the called form modal :
do form serach_listbox to myRetVal && It could return a value in unload event

But better you do that from lostfocus not valid :
*Lostfocus approach
if empty(this.value)
   * ....
   nodefault && If control should stay here - IOW valid return .f. 
else
  *...
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform