Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transforming string representation
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00564145
Message ID:
00564929
Views:
20
Oops. One more correction.

>Thanks. For the particular problem, I had, I solved it the similar way Vlad originally suggested (e.g. just made small change in few methods), but if I would need to do this kind of transformation, I guess, I borrow your's and Vlad's ideas.
>
>Thanks again.
>>>>lcStrIn = "between(price, 100,1000000)"
>>>>lcStrOut = ""
>>llDelimiter = .T.
>>>>FOR i=1 TO Len( lcStr)
>>>>	lcCurChar = Substr( lcStrIn, i, 1 )
>>>>	IF Isdigit(lcCurChar) And llDelimiter
>>>>		lcStrOut = lcStrOut + "$" + lcCurChar
>>>>	ELSE
>>>>		lcStrOut = lcStrOut + lcCurChar
>>>>	ENDIF
>>>>
        <b>llDelimiter = NOT ISALPHA(lcCurChar) And NOT ISDIGIT(lcCurChar) And (lcCurChar <> "_")</b>
>>>>
>>>>ENDFOR
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform