[Gambas-user] public constants?

Ron Onstenk ronstk at ...239...
Tue Feb 8 14:33:36 CET 2005


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




More information about the User mailing list