🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual
Article #267

Re: "List" property category

#267
From: Henning Berggren
Date: Wed, 10 Oct 2001 07:01
27 lines
1824 bytes
> I've tried to make a property by this:
>
> --- START ---
> Private mList(10) As String
>
> Public Property Get List(Index As Integer) As String
>     List = mList(Index)
> End Property
I would have written it like thise
Public sub GetList(index as integer) as string
  GetList=mList(index)
End Sub
>
> Public Property Let List(Index As Integer, Value As String)
>     mList(Index) = Value
> End Property
> --- END ---
and thise like
Public Sub LetList(index as integer, Value as string)
  mlist(index) = Value
end sub

As functions and subs are not properties, the LetList and GetList
aren't visible in the property list window... - you have to use
property for this task.

- Henning
Technical Details
Message-ID: <49e80d1f.0110092301.31fc29b4@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <h4Hw7.18547$lk7.298502@news.get2net.dk> <3bc36507$0$11598$ba624c82@nntp01.dk.telia.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb992,2a4d08c125602828
X-Google-Attributes: gidfb992,public
X-Google-Thread: f51ba,2a4d08c125602828
X-Google-Attributes: gidf51ba,public
X-Google-Thread: f645d,2a4d08c125602828
X-Google-Attributes: gidf645d,public
X-Google-ArrivalTime: 2001-10-10 00:01:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: henning.berggren@get2net.dk (Henning Berggren)
Newsgroups: comp.lang.basic.visual,comp.lang.visual.basic,dk.edb.programmering.basic.visual-basic
Subject: Re: "List" property category
Date: 10 Oct 2001 00:01:01 -0700
Organization: http://groups.google.com/
Lines: 27
Message-ID: <49e80d1f.0110092301.31fc29b4@posting.google.com>
References: <h4Hw7.18547$lk7.298502@news.get2net.dk> <3bc36507$0$11598$ba624c82@nntp01.dk.telia.net>
NNTP-Posting-Host: 193.3.32.4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1002697262 32122 127.0.0.1 (10 Oct 2001 07:01:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 10 Oct 2001 07:01:02 GMT