Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using == vs =
Message
 
To
16/11/2015 15:05:40
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01627149
Message ID:
01627564
Views:
108
One is an index and one is an offset which are two different things. Think of the offset of moving the caret over 1 char at a time. If you move 8 times you end up on the a.

+++ Rick ---

>
>string str = "This is another substring test";
>  retString = str.Substring(8, 1);
>
>will return "a"
>That makes no sense to me but I program accordingly.
>The great Scottish empiricist, David Hume, when asked why he did things that worked practically- but couldn't be logically proven= said:
>"It pains me too much to do otherwise."
>
>
>
>
>
>
>
>
>>Sorry, couldn't resist. All of these things are man-made and like any other rule or law devised by hopefully clever people, we just have to live with it. ;-)
>>
>>Meanwhile be thankful you're not enjoying the wonderful byzantine pleasures of C++ strings that are arrays. ;-)
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform