Shao Posted April 13, 2006 Posted April 13, 2006 Hello, I have some problems with a guictrlread used to get the text entered in a guictrlcreateinput. I've tried many different ways to do it : with variables=guictrlread(variables) $UTILISATEUR = GUICtrlRead($UTILISATEUR) $MOTDEPASSE = GUICtrlRead($MOTDEPASSE) $Identif = $UTILISATEUR & " " & $MOTDEPASSE with array-variables : $UTILISATEUR = GUICtrlRead($UTILISATEUR,1) $MOTDEPASSE = GUICtrlRead($MOTDEPASSE,1) $Identif = $UTILISATEUR[0] & " " & $MOTDEPASSE [0] other-non-array variables : $user = GUICtrlRead($UTILISATEUR) $mdp = GUICtrlRead($MOTDEPASSE) $Identif = $mdp & " " & $mdp other array-variables : $user = GUICtrlRead($UTILISATEUR,1) $mdp = GUICtrlRead($MOTDEPASSE,1) $Identif = $mdp[0] & " " & $mdp[0] But the variables getting the input-datas are 0. How can I do to make that $Identif = data of $UTILISATEUR & " " & data of $MOTDEPASSE ?? thanks
Valuater Posted April 13, 2006 Posted April 13, 2006 you need to read the control ID of the input $handle = guictrlcreateinput() ; later info = guictrlread($hande) 8)
Shao Posted April 13, 2006 Author Posted April 13, 2006 (edited) you need to read the control ID of the input$handle = guictrlcreateinput(); laterinfo = guictrlread($hande)8)Thank you but it's exactly that I did :$UTILISATEUR = GUICtrlCreateInput("", (@DesktopWidth+50-500)/2, 470, 500, 25) Edited April 13, 2006 by Shao
GaryFrost Posted April 14, 2006 Posted April 14, 2006 Thank you but it's exactly that I did : from what i can see you then overwrote the handle with the date i.e. $UTILISATEUR = GUICtrlRead($UTILISATEUR) should be something like: $mydataname = GuiCtrlRead($UTILISATEUR) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Shao Posted April 14, 2006 Author Posted April 14, 2006 from what i can see you then overwrote the handle with the date i.e.$UTILISATEUR = GUICtrlRead($UTILISATEUR)should be something like:$mydataname = GuiCtrlRead($UTILISATEUR)As I told it above, I already tried this : $UTILISATEUR = GUICtrlRead($UTILISATEUR)and this $UTILISATEUR = GUICtrlRead($UTILISATEUR,1)and also this $user = GUICtrlRead($UTILISATEUR)and at last this $user = GUICtrlRead($UTILISATEUR,1)But none of these tests seems to be okay.
GaryFrost Posted April 14, 2006 Posted April 14, 2006 As I told it above, I already tried this : $UTILISATEUR = GUICtrlRead($UTILISATEUR)and this $UTILISATEUR = GUICtrlRead($UTILISATEUR,1)and also this $user = GUICtrlRead($UTILISATEUR)and at last this $user = GUICtrlRead($UTILISATEUR,1)But none of these tests seems to be okay.you'll need to supply a script where the problem can be duplicated/fixed. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Shao Posted April 14, 2006 Author Posted April 14, 2006 you'll need to supply a script where the problem can be duplicated/fixed.Thank you Gafrost but it's okay, I had inserted guidelete() before affecting the datas from guictrl
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now