Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The other way - John's procecure
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
The other way - John's procecure
Divers
Thread ID:
00385643
Message ID:
00385643
Vues:
34
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform