PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → string function
string function
Iniciado por guest, 23,abr. 2015 15:02 - 5 respuestas
Publicado el 23,abril 2015 - 15:02
no is string

no=1,2,3,4,5,

to convert this no is

no=1,2,3,4,5(remove " , " this sign.)
but not idea of me,when is string function use.
Publicado el 23,abril 2015 - 15:10
Hi Vijay,

Replace()

Best regards,
Alexandre Leclerc
Publicado el 23,abril 2015 - 15:10
Vijay

'Replace' is your friend
InitialString is string = "1,2,3,4,5," ReplacedString is string = Replace(InitialString,",","") Info(ReplacedString) // Displays 12345
Publicado el 23,abril 2015 - 15:12
To remove the last comma
no = Left(no,Length(no)-1)
Publicado el 23,abril 2015 - 15:32
thank you
sir,
Publicado el 23,abril 2015 - 18:28
Quote
Arie Mars

To remove the last comma

no = Left(no,Length(no)-1)

Or even better:
TrimmedString = NoCharacter(SomeString,",")

Cheers,

Peter H.