You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

OlimilO

Intermediate

  • "OlimilO" is male
  • "OlimilO" started this thread

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

1

Thursday, June 25th 2009, 10:01am

cool control-arrays

Hi @ll



there must be some room for yokes, I think. But for now let's get back to work again :rolleyes:

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

This post has been edited 1 times, last edit by "OlimilO" (Jun 30th 2009, 11:42pm)


Rate this thread
WoltLab Burning Board