Avatar of formadmirer
formadmirer
Flag for United States of America asked on

VFP 9 How To Parse Char String?

Hi all. I would like to be able to pull three words greater in length than 6 chars from a text string.

When parsing the string what I need is for the first word encountered where LEN => 6 to populate a form text field, then continue parsing the string, so that the second word matching populates a second form text field, and so on for a total of three text fields populated.

The object is to try and extract somewhat important keywords, while eliminating more common words, hence the 6 char minimum.

I don't know how to perform such a search on a string, so I'm hoping someone here can help me out. Thx!
FoxPro

Avatar of undefined
Last Comment
Pavel Celba

8/22/2022 - Mon
z_alex

please give example.

Or you mean by using  substring or substr()
ASKER CERTIFIED SOLUTION
Pavel Celba

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
formadmirer

ASKER
Absolutely amazing! Super fast response with a solution that works perfectly for what I need.
Thank you so much!
Pavel Celba

You are welcome!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck