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

Problem with string

Status
Not open for further replies.

pado77

Programmer
Apr 9, 2003
9
IT
I have a problem with a field string.

I have a field string which contain a comma and I change a comma with a space.
I find a comma with the function "INSTRING" but how change a comma ????
 
The simplest solution would be to use string slicing. Read the help to get full details, but generally you want to do this: FieldString[Position] = ' '
where FieldString is your string and Position is the position returned from INSTRING. If you want to check and replace multiple commas, put in all in a LOOP with a BREAK when INSTRING returns zero(0).
 
Thanks a lot. I'll try this solution.
bye bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top