Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String Control.. VFP Newbie...

Status
Not open for further replies.

PogoWolf

Programmer
Mar 2, 2001
351
US
Hello all again,
I have another issue, that I'm not sure how to go about dealing with in FoxPro.. Let's say I have a 2 Strings:

"AAAA - Assurance AllState Automotive Appliances"
"BB - BumbleBees"

But I want that knocked down to "AAAA" and "BB"..
I know that All the data will is set with the Header followed by a space and the dash.. and then the rest of the string..

If VB I would use soemthing like this (where as *string* is the string:

sTemp = Trim(left(*String*, (InStr(*STRING*, "-") - 1)))

But How would I do something like this is VFP 3.0?

thank you in Advance!!!!!

******
Darkness... Bleakness...
and Plastic forks...
--The PogoWolf
 
[tt]left(string1, at("-", string1) - 1) [/tt] Robert Bradley
teaser.jpg

 
You the Man (Woman) hehe!!! Thank you!!!! ******
Darkness... Bleakness...
and Plastic forks...
--The PogoWolf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top