[Gambas-user] Gambas example question
Benoit Minisini
gambas at ...1...
Sat Dec 3 17:58:40 CET 2005
On Saturday 03 December 2005 16:29, Fabricio Santos wrote:
> Viva Andy,
>
> I was looking at this example in the Gambas help browser and I have a
> question about it:
>
> ==================================
> I suggest the following code.
>
> PRIVATE $hConn AS Connection
>
> PUBLIC SUB GoConnect()
> DIM sName AS String
> TRY $hConn.Close
> sName = "fgda"
> ...
> ==================================
>
> Is there a special reason for the variable name to include a $ sign? Or
> is it just part of Gambas to accept a $ sign on any variable name and
> you decided to use it there?
The last answer is right. I just wanted to have a character to make an easy
distinction between global private class variables and local variables :-)
Regards,
--
Benoit Minisini
More information about the User
mailing list