Jump to content

Multiple variables


Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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).
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...