Jump to content

Help me about give name


 Share

Recommended Posts

My code:

=============================================

for $i = 1 to $pri[0][0]

GUICtrlCreateLabel($pri[$i][0], 8, 48+($i-1)*25, 60, 17)

GUICtrlCreateLabel($pri[$i][1], 80, 48+($i-1)*25, 60, 17)

GUICtrlCreateInput("", 192, 48+($i-1)*25, 60, 17)

GUICtrlCreateInput("", 280, 48+($i-1)*25, 60, 17)

GUICtrlCreateLabel("", 368, 48+($i-1)*25, 60, 17)

Next

=============================================

i want to give name to each one

how to do it ?

thanks

Link to comment
Share on other sites

By "give name", what do you mean? modifying the text inside the input/label? Declaring them as variables? Not sure what exactly you are asking for.

Kurt

PS: when posting autoit code, use autoit tags by using [.autoit] (your code here) [./autoit] <-- use that without the .'s

Awaiting Diablo III..

Link to comment
Share on other sites

My code:

=============================================

for $i = 1 to $pri[0][0]

GUICtrlCreateLabel($pri[$i][0], 8, 48+($i-1)*25, 60, 17)

GUICtrlCreateLabel($pri[$i][1], 80, 48+($i-1)*25, 60, 17)

GUICtrlCreateInput("", 192, 48+($i-1)*25, 60, 17)

GUICtrlCreateInput("", 280, 48+($i-1)*25, 60, 17)

GUICtrlCreateLabel("", 368, 48+($i-1)*25, 60, 17)

Next

=============================================

i want to give name to each one

how to do it ?

thanks

dim $var[$pri[0][0] + 1][4 + 1]
for $i = 1 to $pri[0][0]
    $var[$i][0] = GUICtrlCreateLabel($pri[$i][0], 8, 48+($i-1)*25, 60, 17)
    $var[$i][1] = GUICtrlCreateLabel($pri[$i][1], 80, 48+($i-1)*25, 60, 17)
    $var[$i][2] = GUICtrlCreateInput("", 192, 48+($i-1)*25, 60, 17)
    $var[$i][3] = GUICtrlCreateInput("", 280, 48+($i-1)*25, 60, 17)
    $var[$i][4] = GUICtrlCreateLabel("", 368, 48+($i-1)*25, 60, 17)
Next

what about this, didn't test it yet.

Arjan

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...