Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check value of text element bound at a table
Message
De
15/09/1999 10:07:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/09/1999 09:59:08
Ralf Zimmer
N:media Datapoolsystems Gmbh
Duesseldorf, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00264906
Message ID:
00264911
Vues:
27
>Hello,
>
>I am using a form with some text controls bound to a table.
>When I click on a command button they following code will run:
>
>....
>if alltrim(thisform.artnr.value) = ""
> =Messagebox("Message",48,"Achtung")
> return
>endif
>
>I am trying to verify if a form field is filled or not.
>But it doesn't work.
>Equal to the value the messagebox appears every time. :-(((((
>
>Sorry about my english.
>
>Can anybody help me?
>
>regards Ralf


In VFP every string = "" unless set exact is on. Do it like this :
if thisform.artnr.value == ""
   =Messagebox("Message",48,"Achtung")
   return
endif

*Or (more logical)
if empty(thisform.artnr.value)
   =Messagebox("Message",48,"Achtung")
   return
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