Also Pascal lets you reference parts of strings that way. But not FP/VFP.
>Hi Ken,
>Why would you not use SUBSTRING? It's very simple as is.
>You may be confused with lower-level languages such as C, or I think even Delphi or Visual Basic, where strings can be manipulated as arrays.
>Mark
>
>>Don't I remember some sort of syntax to refer to the nth character in a string without using the substring function? It was along the line of MyString<3> or something, for example, to get the third character - (and no, I'm not confusing array functions). Anybody rememeber/know this or am I getting mixed up with another language I used at some point?
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing