Sarav Posted April 16, 2009 Share Posted April 16, 2009 I am trying to read a value from an array and trying to populate the array value in a form text field. I recorded a script of filling a gui form. I created an array for each text field in the gui form. I gave a loop to execute the form. For each iteration i tried calling the values from the Array Index position (Used 'Send()' function) But it didnt work. Can anyone tell me a function to call an array value and fill it in the 'textfield' of a gui form through a loop? Thanks in advance Link to comment Share on other sites More sharing options...
Mat Posted April 16, 2009 Share Posted April 16, 2009 (edited) does Send ($array[Number], 1) not work? or better still, check out control send. Edited April 16, 2009 by mdiesel AutoIt Project Listing Link to comment Share on other sites More sharing options...
Sarav Posted April 16, 2009 Author Share Posted April 16, 2009 Thank You so much "Mdiesel". It did work Link to comment Share on other sites More sharing options...
Mat Posted April 16, 2009 Share Posted April 16, 2009 kk, no probs... It wasn't really a detailed answer as I was unsure of what you'd already tried.... from the helpfile: An example: Let's say you want to store these series of characters: "A", "U", "T", "O", "I", "T" and "3". You could use seven separate variables to do so, but using an Array is more efficient: $Array[0]="A" $Array[1]="U" ..etc.. $Array[6]="3" To access a specific value in an Array, you only have to know the index number: $MyChar=$Array[2] This results in $MyChar containing the letter "T" (See also: 'operators'). AutoIt Project Listing Link to comment Share on other sites More sharing options...
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