Sign in to follow this  
Followers 0
cxlaterr

Help me about give name

8 posts in this topic

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

Share this post


Link to post
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..

Share this post


Link to post
Share on other sites

"Declaring them as variables"

Share this post


Link to post
Share on other sites

refreshing .........

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

but this code include "for...next"

Share this post


Link to post
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

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