Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need new UDF strreplace
Message
 
 
To
10/05/2007 09:09:22
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01223626
Message ID:
01224153
Views:
21
>>Hi Mike,
>>
>>Following code should give you a good starting point
>>lcStr = "ISA*00*00*ZZ*TEST^"
>>lcDelim = "*"
>>lnItem = 3
>>lnP1 = AT(lcDelim, lcStr, lnItem) + 1
>>lnP2 = AT(lcDelim, lcStr, lnItem+1) - 1
>>? STUFF(lcStr, lnP1, lnP2-lnP1+1, "AA")
>>? STUFF(lcStr, lnP1, lnP2-lnP1+1, "ABCD")
>>
>>
>
>That's almost what I did. Yours is better, of course. :)
>
>Thanks

You're welcome. :)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform