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

8 lines
122 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Function StrRev2(ByVal $p1)
dim $b = "", %i
for i = len(p1) DOWNTO 1
b = b & MID(p1,i,1)
next
return b
End Function