Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need string/memo editing help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00188090
Message ID:
00188385
Vues:
31
>>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
Fil
Voir

Click here to load this message in the networking platform