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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy question - About finding a simple char in a string

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi!!!

Do you know which is the funtion in VFP 6.0 that find a Char in a string and change it for other one?

For example I'm trying to find "&" in a lot of names

Example: PI&ON

And change it for letter "Ñ":

Example: PIÑON

Thanks for your help

Cesar


 
Do you mean VB or VFP. In VB you can use the instr() function
 
In VB, I would use:

sString = "Nam&e"
sNewString = Replace(sString,"&","~")

sNewString would then equal "Nam~e"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top