Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
0 length string is not recognized ???
Message
De
23/12/2001 07:21:53
 
 
À
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:
00597803
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
Ulises,

I suspect that set('exact') is OFF, which is the default value

OFF: Specifies that, to be equivalent, expressions must match character for character until the end of the expression on the right side is reached

ie

set exact OFF
? 'xxxxx' = '' && yields TRUE

set exact ON
? 'xxxx' = '' && yields FALSE

SET EXACT is scoped to the current data session.


>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
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform