Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AT() Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00012891
Message ID:
00013233
Views:
32
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform