Hi @ll
there must be some room for yokes, I think. But for now let's get back to work again
After the control arrays were heavily discussed and demanded by many users, Manuel did a great job in implementing the control arrays for us in the new Jabaco 1.4.2 beta.
Controlarrays are now very easy to create and use in Jabaco.
Let me explain it with a small example: an array of CommandButtons.
* Start Jabaco, and start a new SDI-Project (standard-project)
* drag a CommandButton-control onto the form: Command1
* in the properties-editor for Command1 set:
# Caption: "
Bananas"
# Index:
0
-> in the selection box it changes from Command1 to
Command1(0)
* back to the form rightclick Command1 and from the context-menu select "Copy Ctrl+C"
* rightclick the Form and from the context-menu select "Paste Ctrl+V"
now Jabaco creates a new CommandButton with the same name but with the Index-property set to 1
->
Command1(1)
* in the properties-editor for Command1(1) set:
# Caption: "
Pineapples"
* doubleclick one of the Buttons and Jabaco will create the following code for us:
|
Jabaco Source
|
1
2
3
|
Public Sub Command1_Click(Index As Integer)
End Sub
|
fill it with a line just to see it working:
|
Jabaco Source
|
1
|
MsgBox Command1(Index).Caption
|
start the project and click the buttons
OlimilO