Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ftp file
Message
De
27/08/1997 11:47:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00047136
Message ID:
00047140
Vues:
20
>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!!

You can ...
ThisForm.olecontrol.logonname = ThisForm.Text1.Value
ThisForm.olecontrol.Password = ThisForm.text2.Value
then...
?ThisForm.olecontrol.logonnamea
?ThisForm.olecontrol.Password
See what values (if any) are in these properties.
If properties are empty, you know where the start of the problem is.
HTH :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform