PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → String issue (looking for the right command)(starter)
String issue (looking for the right command)(starter)
Iniciado por guest, 03,jul. 2017 15:03 - 2 respuestas
Publicado el 03,julio 2017 - 15:03
hi
i seem to have hit a wall.

a1 , a2 , a3 are (numeric or int)

a1 = 01
trace(a1)// result=1//

//i need
a1=01
a1=a1 + 1
trace(a1)// result=02//

so wd normely cuts a way the zero witch is normely very handy buth in this specific case a problem.Is there a way i can force wd to calculate on 01?
i tried to convert it to string and back to number buth that works only till 9 (and another loop in a loop will give issues)
Publicado el 03,julio 2017 - 15:48
Hi X,

Try the function NumToString.
Publicado el 03,julio 2017 - 16:39
that was the command i was looking for thanks Frank

(u have saved me a couple of cups of coffee)