Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
0 length string is not recognized ???
Message
From
24/12/2001 04:43:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/12/2001 07:06:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00597801
Message ID:
00597891
Views:
14
>Hi all:
>I have this very simple code in the Lost Focus event of a field:
>*SET STEP ON
>STORE ALLTRIM(THIS.VALUE) TO xValue
>IF xValue=""
> RETURN
>ELSE
>(Do stuff)
>ENDIF
>I am seeing the value of xValue as "xxxxxx", however, the code executes the RETURN command instead of the ELSE part. Why is so?
>TIA for your time.
>
>Ulises

Ulises,
if xValue == "" && Would do
However this shortens it a bit :

IF empty(this.Value)
RETURN
ELSE
(Do stuff)
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