RosettaCodeData/Task/Reverse-a-string/FBSL/reverse-a-string-1.fbsl

9 lines
140 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
Function StrRev1(ByVal $p1)
dim $b = ""
2013-06-05 21:47:54 +00:00
REPEAT len(p1)
b = b & RIGHT(p1,1)
p1 = LEFT(p1,LEN(p1)-1)
END REPEAT
2013-04-10 23:57:08 -07:00
return b
End Function