[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    Re: [Gambas-devel] Gambas Question
From:       Rob Kudla <sourceforge-raindog2 () kudla ! org>
Date:       2006-03-30 3:15:54
Message-ID: 200603292215.55146.sourceforge-raindog2 () kudla ! org
[Download RAW message or body]

On Wed March 29 2006 15:06, Benoit Minisini wrote:
> 4) You can use the Tag property. In Gambas, the Tag can be
> what you want, not just a string.

However, if you're setting it through the properties dialog it 
must be a string, right?

> I can't tell you precisely, as I don't know what you do
> exactly.

Well, he said control arrays "made it easy to loop through the 
controls setting or clearing values."  So he wants to iterate 
through the controls programmatically, meaning the Object[] 
approach is probably closest to what he wants to do (unless he 
wants to do it to every control on a form or other container, in 
which case your solution #3 would be it.)

What throws VB users off is that in VB, you could put controls 
into arrays right in the form editor, in the properties dialog.  
In Gambas you do have to do it manually through code.  I 
addressed this in my VB form converter by changing MyControl[1] 
to MyControl_1 or something like that, and generating code in 
Form_Open to add them to an Object[] called MyControl.

Rob


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic