Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String differences
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01465324
Message ID:
01465328
Views:
70
>
>DECLARE INTEGER StrCmpC IN Shlwapi;
>AS StrCmp;
>	STRING @, STRING @
>
>LOCAL cStr1, cStr2
>
>cStr1 = '12345'
>cStr2 = '12045'
>
>? StrCmp( @cStr1, @cStr2 )  && returns 3
>
>? StrCmp( @cStr2, @cStr1 )  && returns -3
>
>
>Can also be declared with input parameters passed by value.

Does the 3 mean the 3rd char or the char that is actually the difference?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform