Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transforming string representation
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00564145
Message ID:
00564929
Vues:
22
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform