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' = ""
? 'B000003' <> ""
? 'B000003' = "B0"
? 'B000003' == "B0"
? EMPTY('B000003')
>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--