[Gambas-user] refer to an object with a string

Jean-Yves F. Barbier 12ukwn at ...626...
Mon Aug 17 15:05:42 CEST 2009


Doriano Blengino a écrit :
> Jean-Yves F. Barbier ha scritto:
>> Doriano Blengino a écrit :
>> ........
>>
>> Thanks to both ouf you, I saved this thread to be sure to have it when needed :)
>>
>>   
>>> I saw a "Label2572"... it seemed to me a little strange...
>>> And about obscure code, I think that well commented (and written!) code 
>>> is never obscure, but sometimes one writes code too much complex for the 
>>> purpose that has to be done. I sometimes do that...
>>>     
>> Just a joke, I leave only "unused" object stay with their generated names, I 
>> renamed other with "talking" names; real names of these variables are:
>> lbl_CONNECT (title of ->) and ckb_CONNECT (CheckBox).
>>
>> I avoid esoteric names
>>   
> I didn't want to say that Label2572 is obscure code: instead the first 
> thing that came to my mind is "how many labels are in this form?".
> So I pointed out that perhaps dynamic construction of gadgets would have 
> been useful to you.

Ha, ok (at first, I intended to put label2445316, hopefully I didn't: I would
have been responsible from a stroke;-)
I you could point me to an example it would be nice, because I really don't get
the interest of on-ze-fly construction (seems complicated, what pros? what cons?)

Thanks,
JY
-- 
NEVER swerve to hit a lawyer riding a bicycle -- it might be your bicycle.




More information about the User mailing list