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:
00188385
Views:
23
>>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.

Thanks for the help and letting me vent.

Brenda
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform