Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement