Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need string/memo editing help
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00188090
Message ID:
00188394
Views:
14
>>>How can I know if the memo field has "abc" in it (may not be on first line). I do not know the code syntax to ask if one string contains another.
>>>
>>>Brenda,
>
>>Look at the $ operator. It will return a logical value based on whether or not one string contains another (ie: lcstring1 $ lcstring2). If lcstring1 is contained in lcstring2 the result will be .T.
>
>I do not mean to sound cynical, but hey, why did I not think of the $. Silly me, I spent half an hour in help looking for "string functions", "string", "str", etc, when it obvioulsy must be the $ operator.
>
>It is easy for you foxpro pros. But for us novices, foxpro does not make it easy to find the string operators and functions. Everytime I have to do some string manipulation, it takes me forever to find the right function. In many languages there is a section of the book, or help, where they are all listed, and amazingly, they all start with something common, like, "str". Oh well.

All of us "pros" have been at your stage at some point. Just keep that in mind. (Now someone blast me for including myself in "pros". ;)

One helpful hint (also mentioned in my other reply), when you look up one function and start following "See Also" links, that can lead to a world of knowledge.

Cheers,
Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Reply
Map
View

Click here to load this message in the networking platform