Sign in to follow this  
Followers 0
douwetjerk

Multiple variables

4 posts in this topic

Hello anybody,

I like to perform the creation of a sort of calendarlook in a form with the creation of buttons...... but,

I want to give each button its own variable name.

Anybody who can hepl me to fill in the $????........?

Thank you.

For $YVz = 1 To 6

For $XVz = 1 To 7

$???? = GUICtrlCreateButton("", 200 + $XVz * 50, 125 + $YVz * 50, 40, 40, $SS_CENTER)

Next

Next

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Take a look in the helpfile on how to use arrays.

Dim $button[7][8]

For $YVz = 1 To 6
    For $XVz = 1 To 7
        $button[$YVz][$XVz] = GUICtrlCreateButton("", 200 + $XVz * 50, 125 + $YVz * 50, 40, 40, $SS_CENTER)
    Next
Next
Edited by Pain

Share this post


Link to post
Share on other sites

Welcome douwetjerk,

The best way to start


My projects : GCS Search 1.07 (GUI Control Styles Search)* Multilingual tool to help about the old scripts, with a dynamic menu.* Easy way to find missing Include files in old scripts downloaded from forums !* Famous Monoceres script added and improved (visual, drag and drop, automatic)* There is an interactive color converter with palettes too, for fun !The best way to start Autoit3 development (for newbies).

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