A private variable, method or property cannot be used outside of the class code.
' Gambas class file PRIVATE $hConn AS Connection ' only code inside this class can access $hConn PUBLIC SUB btnConnect_Click() DIM sName AS String ...