[Gambas-user] New Property feature request

Fabien Bodard gambas.fr at gmail.com
Mon Oct 11 18:00:47 CEST 2021


Le dim. 10 oct. 2021 à 17:36, Benoît Minisini <g4mba5 at gmail.com> a écrit :

> Le 10/10/2021 à 17:32, Benoît Minisini a écrit :
> > Le 10/10/2021 à 14:23, Fabien Bodard a écrit :
> >> Hi Benoit,
> >>
> >>
> >> I use a lot of short property declaration.
> >>
> >> like :
> >>
> >> Property Read {Conditions} As Conditions[] Use $aConditions[]
>
> The last "[]" is ignored, and you should get a compiler error instead.
>
> After USE comes an identifier, the name of the variable, nothing else.
>
> >>
> >> Is it possible to add the hability to initialise the variable on  the
> >> declaration line ?
> >>
> >> Like this :
> >>
> >> Property Read {Conditions} As Conditions[] Use New $aConditions[]
> >>
> >> or
> >>
> >> Property Read {Conditions} As Conditions[] Use New $aConditions[3]
> >>
> >> ??
> >>
>
> Not like that. The syntax would be:
>
> Property Read {Conditions} As Conditions[] Use $aConditions = New
> Conditions[]
>
> which is not very nice, and does not save a lot of typing...
>


Hum ... yes

And what about simple connected object ?

Property Header as Integer Use $hGrid.Header

Some time ... It can save lot of time :-D


> --
> Benoît Minisini
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>


-- 
Fabien Bodard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211011/0bb0c8d2/attachment.htm>


More information about the User mailing list