Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chrtran() applied selectively
Message
From
03/06/2016 21:17:37
 
 
To
03/06/2016 19:14:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01636985
Message ID:
01636986
Views:
129
Anytime you need to do string or text manipulation in VFP, the first place you should go is Steven Black's excellent article. http://stevenblack.com/articles/text-and-string-handling-in-VFP/


>I am searching for the most expedient way to change a character in a specific area of a string.
>
>mstr='1st-title: ANAME-HER : 3520931 place[21-22]'
>in this string the hyphen between 21 and 22 should be a dot.
>if I applied chrtran() I would end up changing all the hyphens which I do not want to do.
>
>right now all I've been able to accomplish is to locate the error in a portion of the string, but putting it back together is starting to get a bit unwieldy.
>Is there a simpler more direct route of directing the chrtran() to the area beyond '['
>
>thanks
>k
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform