Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check value of text element bound at a table
Message
From
15/09/1999 10:07:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/09/1999 09:59:08
Ralf Zimmer
N:media Datapoolsystems Gmbh
Duesseldorf, Germany
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00264906
Message ID:
00264911
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform