Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9228
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | JohnMartens <martens@tennishulp.info> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: ListView |
| Date | Sun, 3 Apr 2016 18:03:02 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 58 |
| Message-ID | <57013EB6.2030703@tennishulp.info> (permalink) |
| References | <8d50ea90-468a-4289-8c1c-f78d530b707e@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx02.eternal-september.org; posting-host="9384b273ef5f6d14c2d6a85e24adaf32"; logging-data="9384"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nigBja5/nnaqa4DNxhzIvNICtpLXODDc=" |
| User-Agent | Mozilla/5.0 (Windows NT 6.0; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 |
| In-Reply-To | <8d50ea90-468a-4289-8c1c-f78d530b707e@googlegroups.com> |
| Cancel-Lock | sha1:hWEkE5zZIsScJX8QAXenD6gagkA= |
| Xref | csiph.com comp.lang.clipper.visual-objects:9228 |
Show key headers only | View raw
Hi Robert,
Firt of all I'm a real VO guru but I hope I can help.
Defining ListView Columns is something to do once and then fill the
content of the LV items
so something like
for dwLV := 1 to ALen(aLVColInfo)
oLVC:=ListViewColumn{12,aLVColInfo[dwLV,1]}
oLVC:Caption:=RTrim(aLVColInfo[dwLV,2])
self:oDClvHaltsDown:AddColumn(oLVC)
next
for dwLW := 1 to ALen(aLVInfo)
oLVI:=ListViewItem{}
oLVI:SetValue(aLVInfo[dwLV,1],aLVColInfo[1,1])
oLVI:SetValue(aLVInfo[dwLV,2],aLVColInfo[2,1])
oLVI:SetValue(aLVInfo[dwLV,3],aLVColInfo[3,1])
self:oDClvHaltsDown:AddItem(oLVI)
next
Does this help to clarify ?
John
Op 3-4-2016 om 16:22 schreef Rob Smith:
> I have the following coding
>
> for nMod:=1 to Len(aBuild)
> sSymbol:=String2Symbol(aBuild[nMod][1])
> oLVC:=ListViewColumn{12,sSymbol}
> oLVC:Caption:=RTrim(aBuild[nMod][1])
> self:oDClvHaltsDown:AddColumn(oLVC)
> oLVI:=ListViewItem{}
> // 2 blank rows
> oLVI:SetText("1",sSymbol)
> self:oDClvHaltsDown:AddItem(oLVI)
> oLVI:=ListViewItem{}
> oLVI:SetText("2",sSymbol)
> self:oDClvHaltsDown:AddItem(oLVI)
> for nSub:=2 to Len(aBuild[nMod])
> oLVI:=ListViewItem{}
> oLVI:SetText(aBuild[nMod][nSub],sSymbol)
> self:oDClvHaltsDown:AddItem(oLVI)
> next
> next
>
> I am expecting them to go in the correct column, which they do, but after the column title to have 2 blank rows then data (actually I set the 2 blanks to 1 and 2 so I could see where they go). For the first column there are 11 blanks rows then what I expect, for the next column 22 blank rows and what I expect, then 33, 44 etc.
>
> What am I doing wrong?
>
> Thanks
>
> Robert
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ListView Rob Smith <rasmithhalifax@gmail.com> - 2016-04-03 07:22 -0700
Re: ListView JohnMartens <martens@tennishulp.info> - 2016-04-03 18:03 +0200
Re: ListView Rob Smith <rasmithhalifax@gmail.com> - 2016-04-04 03:03 -0700
Re: ListView JohnMartens <martens@tennishulp.info> - 2016-04-04 15:15 +0200
csiph-web