PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Complete (Function) Left
Complete (Function) Left
Iniciado por marcov, 07,may. 2024 18:33 - 3 respuestas
Miembro registrado
56 mensajes
Publicado el 07,mayo 2024 - 18:33
hi,
How can I complete a string but from the left?

thanks
Miembro registrado
57 mensajes
Popularité : +2 (2 votes)
Publicado el 10,mayo 2024 - 11:38
Procedure LeftComplete(sInitialString is string, nFinalLenght is int)

RESULT Complete("",nFinalLenght-Length(sInitialString))+sInitialString
Miembro registrado
24 mensajes
Publicado el 14,mayo 2024 - 00:48
If only the Complete function had a parameter to complete on the left!
Publicado el 28,mayo 2024 - 18:06
Here's how it can be done using built in functions:

StringReverse(Complete(StringReverse("TEST_STRING"), 25, "A"))


This will return "AAAAAAAAAAAAA_TEST_STRING"


BR