Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement