RosettaCodeData/Task/Reverse-a-string/FBSL/reverse-a-string-1.fbsl
2023-07-01 13:44:08 -04:00

8 lines
140 B
Text

Function StrRev1(ByVal $p1)
dim $b = ""
REPEAT len(p1)
b = b & RIGHT(p1,1)
p1 = LEFT(p1,LEN(p1)-1)
END REPEAT
return b
End Function