Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5912
| From | "Darmadi" <support@gfsoftindo.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Newbie bBrowser |
| Date | 2011-01-29 07:48 +0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ihvubq$td2$1@speranza.aioe.org> (permalink) |
| References | <ihjjph$hus$1@speranza.aioe.org> <XEf%o.8461$MF5.8340@viwinnwfe02.internal.bigpond.com> <ihm3qn$jeq$1@speranza.aioe.org> |
Sorry, a little bit correction:
ACCESS VALUE() AS USUAL PASCAL CLASS bAutoNumberColumn
RETURN SELF:oOwner:GetFirstVisibleRow()
Regards,
Darmadi
"Darmadi" <support@gfsoftindo.com> wrote in message
news:ihm3qn$jeq$1@speranza.aioe.org...
> Hi Steve,
>
> Thanks, but after I look in the source of bBrowser, I have found another
> easy way to add a auto number column.
>
> CLASS bAutoNumberColumn INHERIT bDataColumn
>
> ACCESS VALUE() AS USUAL PASCAL CLASS bAutoNumberColumn
> RETURN SELF:oOwner:GetRowNo()
>
>
> Regards,
> Darmadi
>
> "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> wrote in message
> news:XEf%o.8461$MF5.8340@viwinnwfe02.internal.bigpond.com...
>> Darmadi
>>
>> Something like below should start you off<g>
>>
>> anArray := ArrayNew( oBB:RowCount )
>> FOR i := 1 UPTO Alen( anArray )
>> anArray[ i ] := ntrim(i) + '.'
>> NEXT
>> oCol := bDataColumn{ 'No.', { |x,y| y[ x:RowNo ] }, #EXPRESSION, oBB,
>> anArray }
>> oBB:AddColumn( oCol, 1 )
>>
>> I hope you realise that RowNo is only for the visible rows in the
>> bBrowser.
>> ie if you only have 10 rows on screen then all you should see is a
>> static 1-10 even though you may have 50 records in the server
>>
>> No guarantee that the above will work (check the syntax/parameters), I
>> just entered it into the message
>>
>> CYA
>> Steve
>>
Back to comp.lang.clipper.visual-objects | Previous | Next | Find similar | Unroll thread
Re: Newbie bBrowser "Darmadi" <support@gfsoftindo.com> - 2011-01-29 07:48 +0700
csiph-web