Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The other way - John's procecure
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
The other way - John's procecure
Miscellaneous
Thread ID:
00385643
Message ID:
00385643
Views:
33
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
Map
View

Click here to load this message in the networking platform