[Gambas-user] Global Vars

David Villalobos Cambronero david_villalobos_c at ...43...
Wed Nov 21 13:25:33 CET 2007


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

David

----- Original Message ----
From: "smiefert at ...784..." <smiefert at ...784...>
To: gambas-user at lists.sourceforge.net
Sent: Wednesday, November 21, 2007 5:50:48 AM
Subject: [Gambas-user] Global Vars


Hello,

how can i  set a var  is avaiable in all formulars,..?

i want to set for example teh database conecction data in a global var
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user






      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


More information about the User mailing list