Code:
dim input as C
dim reverse_input as C
dim reconstruct_input as C
dim qx as N
dim length as N
input=ui_get_text("String Please","Please enter a string that contains 10+ characters:")
length=len(input)
IF length <11
ui_msg_box("Error","Your string must contain 10+ characters; nothing less!")
end
END IF
reverse_input=""
FOR qx = length TO 1 step -1
reverse_input=reverse_input+(substr(input, qx, 1))
next
msgbox("Reversed","Here is your string reversed: "+reverse_input)
reconstruct_input=""
FOR qx = length TO 1 step -1
reconstruct_input=reconstruct_input+(substr(reverse_input, qx, 1))
next
msgbox("Reversed, Reversed", "Here is your sting reversed,reversed or back to normal: "+reconstruct_input)
Bookmarks