Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
0 length string is not recognized ???
Message
De
24/12/2001 04:43:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/12/2001 07:06:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00597801
Message ID:
00597891
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform