Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with oRange
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01516312
Message ID:
01516489
Views:
36
>You are correct. SET EXACT was OFF. I just set it back to ON. I was able to compensate by making lcOldCarr_Name = SPACE(1) instead of an empty blank.
>
>When I initialized the lcOldCarr_Name to "", it would not work right with the comparison. So, I changed it to SPACE(1) and it now compares properly.


Changing it to SPACE(1) solves this one case, but leaving SET EXACT OFF is very dangerous

It won't work in cases like this
? 'abcd' <> 'abc'
>Thanks Gregory!
>Cecil
>
>>That is because your SET EXACT is OFF
>
>>replace
>
>IF ALLTRIM(lcCarr_Name) != lcOldCarr_Name
>
>by
>
>if( !(lcCarr_Name == lcOldCarr_Name) )
>
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform