[Gambas-user] Problem with Replace$
Daniel Campos
danielcampos at ...282...
Tue Jul 26 19:01:37 CEST 2005
The \ character is an special symbol, try:
b= Replace$(a, "'", "\\'")
Regards,
D. Campos
Carl Bouchaux escribió:
>I can't do any Replace with strings :
>an example :
>
>This code don't works :
>
>Dim a as string
>Dim b as string
>a = "Test't"
>b= Replace$(a, "'", "\'")
>
>
>b must be "Test\'t" after, no ?
>
>what's the problem ?
>
>tks
>Carl
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
>
More information about the User
mailing list