[Gambas-user] Question
Fabien Bodard
gambas.fr at ...626...
Tue Sep 29 19:50:34 CEST 2015
2015-09-29 18:04 GMT+02:00 Tobias Boege <taboege at ...626...>:
> On Tue, 29 Sep 2015, Moviga Technologies wrote:
>>
>>
>> Property Read {Map} As Map
>>
>> What are the brackets doing?
>
> They tell the compiler to treat the bracketed string as an identifier. This
> is documented here[0]. Since there apparently is a class named "Map" already,
> it might cause trouble for the parser if you call a totally unrelated symbol
> also "Map". The brackets clarify the situation, although I think they're not
> needed in property declarations.
>
> As [0] indicates, using reserved keywords of the language as identifiers
> (as opposed to using already declared identifiers for different symbols) is
> another place where brackets must be used.
>
> Regards,
> Tobi
>
> [0] http://gambaswiki.org/wiki/lang/resident
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
Well all is said
MapView share a Map Object (class) via a .Map Property.
So if you want to access to THe internal Map of MapView...
In this case i need to have a property whitch have the same name as
the class "Map"
--
Fabien Bodard
More information about the User
mailing list