[Gambas-user] Hope I'm doing this correctly - I'm searching for help to reference a control using a variable

T Lee Davidson t.lee.davidson at gmail.com
Thu Mar 22 18:01:48 CET 2018


Yes, you're posting to the correct list.

You will find Gambas documentation at http://gambaswiki.org/wiki .

>From there, you can go to Components under Language Reference. Then look under Graphical User Interface.

You will probably use the docs for gb.qt4 and gb.form (enhanced controls) for most things GUI.


-- 
Lee


On 03/22/2018 12:07 AM, David Eaton via User wrote:
> I'm new to this mailing list idea - I don't know how they work or if I'm posting into the correct one.
> 
> I am looking for some help in programming with Gambas.  In particular, I have a program that has several label controls.  I need
> to be able to set properties on these labels via a variable - similar to this pseudo code:
> 
> dim stringx as string = ""
> dim myint as integer = 1
> 
> myint = somenumber_determined_at_runtime
> stringx = "Label" & myint
> Stringx.propertiy = somevalue_determined_at_runtime
> 
> I was able to do this in Visual Basic following some samples on the internet.
> 
> Is there a way to do this in Gambas?
> 
> Thank you, and if I have put this in the completely wrong place please let me know.


More information about the User mailing list