Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5327
| From | "Jamal" <jamal@examples.net> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Is it possible bBrowser doing something like this? |
| Date | 2013-06-05 10:33 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <konjcs$42g$1@speranza.aioe.org> (permalink) |
| References | <de8d68b1-bd16-4c53-bdf1-a39f85503d13@googlegroups.com> |
Yes, check bDataColumn and add and expression which references a method to
handle the virtual column.
Setup your browser, then add something like:
LOCAL oColumn AS bDataColumn
oColumn := bDataColumn{SELF:oDCbBrowser1, SELF:oDCbBrowser1:Server,
{|oServer, oWin| oWin:CalcBalance()}, #Expression, SELF}
oColumn:Editable := FALSE
oColumn:Width := 30
oColumn:HyperLabel := HyperLabel{#BALANCE}
oColumn:Caption := "Balance"
SELF:oDCbBrowser1:AddCOlumn(oColumn)
SELF:oDCbBrowser1:OpenColumn(oColumn,,FALSE)
SELF:oDCbBrowser1:Redraw( )
SELF:oDCbBrowser1:Refresh()
METHOD CalcBalance() AS LOGIC PASCAL CLASS MyBrowserWindow
if !SELF:oDCbBrowser1:Server:bof
SELF:oDCbBrowser1:Server:skip(-1) // to get previous row
balance
endif
RETURN SELF:oDCbBrowser1:Server:FIELDGET(#BALANCE) +
SELF:oDCbBrowser1:Server:FIELDGET(#CREDIT) -
SELF:oDCbBrowser1:Server:FIELDGET(#DEBIT)
I suggest you check the docs and samples that come with bBrowser for
additional help.
Jamal
wrote in message
news:de8d68b1-bd16-4c53-bdf1-a39f85503d13@googlegroups.com...
Hi to all,
Is it possible bBrowser doing something like this? (column -> BALANCE)
DATE DESCRIPTION DEBIT CREDIT BALANCE
01/01 Beginning Balance 0 0 100
02/01 Deposit 0 300 400
03/01 Withdrawal 200 0 200
Regards,
Darmadi
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is it possible bBrowser doing something like this? steve_dar@yahoo.com - 2013-06-05 01:27 -0700
Re: Is it possible bBrowser doing something like this? "Jamal" <jamal@examples.net> - 2013-06-05 10:33 -0400
Re: Is it possible bBrowser doing something like this? steve_dar@yahoo.com - 2013-06-15 07:02 -0700
csiph-web