General information
Title:
The other way - John's procecure
To David, Jonh and other fridens...
I've put John's code into a prg called test.prg
and added the line Do RerversIt into the prg.
as shown below
DO ReverseIt
PROCEDURE ReverseIt
PARA cText
cReversed="ABCDE"
FOR I = LEN(cText) TO 1 STEP -1
cReversed=cReversed+SUBS(cText,i,1)
ENDFOR
RETURN cReversed
ENDPROC
When I type: "do test.prg"
It returns the error message below
"Function argument type is invalid for this value"
Could anybody test this procedure ?
If possible put the expression "ABCDE" in the correct
position (I don't know if I've put it right).
All that I want to do is to turn the expression
"ABCDE" into "EDCBA"
Thanks
Moises
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only