Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 8.0 syntax problem????
Message
 
 
To
13/08/2003 15:57:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00819920
Message ID:
00819942
Views:
17
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform