Sign in to follow this  
Followers 0
Sarav

To read a string from an array and populate the array value in a form

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

does Send ($array[Number], 1) not work?

or better still, check out control send.

Edited by mdiesel

Share this post


Link to post
Share on other sites

Thank You so much "Mdiesel". It did work

Share this post


Link to post
Share on other sites

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').

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0