Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 8.0 syntax problem????
Message
 
 
À
13/08/2003 15:57:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00819920
Message ID:
00819942
Vues:
18
Efrain,

When SET EXACT is OFF VFP compares string on the left to the lenght of the sytring on the right. Any string on the left would be equal empty string on the right. To do exact comparison of strings you can use '==' oprerator. VFP also has special function EMPTY() to check if value is empty(). Try
? 'B000003' = ""	&& .T.
? 'B000003' <> ""	&& .F.
? 'B000003' = "B0"	&& .T.
? 'B000003' == "B0"	&& .F.
? EMPTY('B000003')	&& .F.
>Hi:
>
>I meet with a wierd situation in VFP 8.0. The following routine releases a false value in the bifurcation even when the values for cKey2 is equal 'B000003'
>IF cKey2<>''
>  =thisform.tvWordDoc.Nodes.Add(cKey1,4,cKey1+cKey2,ALLTRIM(cType),2,3)
>  thisform.tvWordDoc.Nodes(thisform.tvWordDoc.Nodes.COUNT).Tag=nRegion_ID
>ENDIF
>the environment parameters are for
>SET EXACT is OFF
>SET NEAR is OFF
>
>Any idea?
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform