[Gambas-user] sign $

Gianluigi bagonergi at gmail.com
Sun Jun 10 18:28:43 CEST 2018


It is only a convention to better understand the code written by others,
but also ours after some time.
I find it useful, for example, in the Properties:

Property sName As String
Private $sName As String

Private Function sName_Read() As String

  Return $sName

End

Private Sub sName_Write(Value As String)

  $sName = Value

End

Regards
Gianluigi

2018-06-10 18:16 GMT+02:00 Mayost Sharon <sharon at 455.co.il>:

> Thank you
>
> I did not understand
>
> Is it meaningful or is it just for good order
>
> ---------- Original Message -----------
> From: Gianluigi <bagonergi at gmail.com>
> To: Gambas Mailing List <user at lists.gambas-basic.org>
> Sent: Sun, 10 Jun 2018 18:06:31 +0200
> Subject: Re: [Gambas-user] sign $
>
> > 2018-06-10 17:57 GMT+02:00 Mayost Sharon <sharon at 455.co.il>:
> >
> > > Hello to you
> > >
> > > I wanted to know
> > > When I declare variables I sometimes see:
> > > $ Sign
> > > And sometimes not
> > >
> > > For example, I took part of a section of gb.setting
> > >
> > > Export
> > > Create Static
> > >
> > > Class Window
> > > Class Desktop
> > > Class DesktopWindow
> > > Class Screens
> > >
> > > Static Property Read DefaultDir As String
> > >
> > > Static Private $ sStr As String
> > > Static Private $ iPos As Integer
> > >
> > > Property Read Keys As _Settings_Keys
> > > Property Read Path As String
> > >
> > > Private $ sPath As String
> > > Private $ sTitle As String
> > > Private $ cSlot As Collection
> > > Private $ bModify As Boolean
> > > Private $ bModifyAll As Boolean
> > > Private $ cModify As Collection
> > >
> > > And I see that there are functions with a $ sign
> > >
> > > For example:
> > > Format $
> > > or
> > > Format without a $ sign
> > >
> > > Thank you
> > >
> > >
> > You can see here [0]
> >
> > Gianluigi
> >
> > [0] http://gambaswiki.org/wiki/doc/namingconvention
> >
> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
> ]----
> > >
> ------- End of Original Message -------
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180610/5e07ccd7/attachment.html>


More information about the User mailing list