Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AT() Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00012891
Message ID:
00013233
Vues:
36
>Hi all,
>.., the value returned to my login function looks like this
>lcLoginString = "jpaskett,ADMINISTRATOR,*******"

Forget all that LEFT(),SUBSTR(), and AT() junk.
Here's the way to get at the tokens in a string like yours.

* Given that lcLoginString = "jpaskett,ADMINISTRATOR,*******"
lclLoginString=ChrTran(lcLoginString , "," ,chr(13))
cUser=MLine(lcLoginString ,1)
cTItle=MLine(lcLoginString ,2)
cPassword=MLine(lcLoginString ,3)

Incidently, there are also some helpful string functions in Foxtool.FLL that are a breeze to use.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform