[Gambas-user] Global Vars
Fabien Bodard
gambas.fr at ...626...
Wed Nov 21 13:56:29 CET 2007
Le Wednesday 21 November 2007 13:25:33 David Villalobos Cambronero, vous avez
écrit :
> It is easy, just use PUBLIC insted of DIM.
>
> If tou want to make a Connection global the best way (I think) is create a
> Module and write something like this:
>
> PUBLIC hCon AS Connection
>
> Then you can access the connection this way:
>
> Module1.hCon
>
> Remenber that ypu have to instantiate the connection
>
> Regards
>
And in the header of the class or module
Dim is used in procedure declaration
More information about the User
mailing list