[Gambas-user] public constants?

Teri Logan teri.logan at ...626...
Wed Feb 9 08:09:43 CET 2005


On Tue, 8 Feb 2005 14:33:36 +0100, Ron Onstenk <ronstk at ...239...> wrote:
> On Tuesday 08 February 2005 09:27, Teri Logan wrote:
> | Hello,
> |
> | another question...
> |
> | When I declare public constaint in module (or class...)
> | for example:
> |
> | <pre>
> | public const XXX as integer = 0
> | </pre>
> |
> | I can access that only within module, not outside. is there any solution?
> |
> | Thanx, Teri
> |
> |
> 
> You should be able by using:
> 
> modulename.XXX = "My secret text"
> print modulename.XXX
> 
> Just prefix the variable, constants or functions with "modulename."
> 
> Ron
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

Hi,

there is no problem with 'normal' global variables, but public
CONSTANTS are not public! ;-(((

*T*




More information about the User mailing list