Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ftp file
Message
From
27/08/1997 11:49:34
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00047136
Message ID:
00047141
Views:
22
>Hi all,
>
>I'm currently using Mabry FTP on my application (I'm not sure how many of you do). My problem is when I program a socket connection with a specific user name and password it works fine. However, when I try to program it dynamic (use textbox to ask user to input their user name and password) the socket won't connected. It doesn't seem to recognize the value of the textbox. The following is what I did.
>
>ThisForm.olecontrol.logonname = ThisForm.Text1.Value
>ThisForm.olecontrol.Password = ThisForm.text2.Value
>
>I also try to store the value in a array.
>
>store ThisForm.Text1.Value to user
>store ThisForm.Text2.Value to pass
>
>ThisForm.olecontrol.logonname = user
>ThisForm.olecontrol.password = pass
>
>none of the above works!! But when I input value manually it works!!
>
>ThisForm.olecontrol.logonname = "pang"
>ThisForm.olecontrol.password = "password"
>
>Any ideas!!

Try..

ThisForm.olecontrol.logonname = ALLT(ThisForm.Text1.Value)
ThisForm.olecontrol.Password = ALLT(ThisForm.text2.Value)

HTH
Matt McDonnell
...building a better mousetrap with moldy cheese...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform