Anytime you need to manipulate text in VFP, go read Steven Black's whitepaper on how to do it.
http://www.stevenblack.com/articles/text-and-string-handling-in-VFP/>What is the function to find a Text in a character String. Suppose My String is '123 44 T M 50 0 g n'. I need the Record Number of the string having Text in it 'T M' and the last two digits are 'g n'. What is the simplest way to find reccord number having the above text in it.
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer