Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The other way around
Message
 
À
27/06/2000 14:11:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00385262
Message ID:
00385270
Vues:
11
>Hi Moises,
>

>PROCEDURE ReverseIt
> PARA cText
> cReversed=""
> FOR I = LEN(cText) TO 1 STEP -1
> cReversed=cReversed+SUBS(cText,i,1)
> ENDFOR
> RETURN cReversed
>ENDPROC
Or..
FUNCTION ReverseIt
  LPARAMETER cText

  LOCAL lcresult, lni, lnlast
  lnlast = LEN(cText)
  lcresult = ""
  FOR lni = 1 TO lnlast
   lcresult = SUBSTR(cText, lni, 1) + lcresult
  NEXT
  RETURN lcresult
ENDFUNC
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform