James;
Thank you.
Do you mean something like:
local oPie
local oWnd := tWindow():New( -500,-550, -50,-30 )
oWnd:Activate()
oPie := TGraph():New( 0, 0, oWnd, nWidth, nHeight, .f., .t. )
with object oPie
:cTitle := "Malignancy % Found On Sample"
:cSubTit := alltrim( ::oSpcs:Specimen )
:AddSerie( { ::oSpcs:Cancrprcnt },"Cancer %", RGB( 50, 50,200), GRAPH_TYPE_PIE, .t. )
:AddSerie( { 100.00 - ::oSpcs:Cancrprcnt },"Non-Cancer", /*RGB( 200, 50,200)*/CLR_WHITE, GRAPH_TYPE_PIE, .t. )
end
oPie:Print( ::oPrn, a[ 1 ], a[ 2 ], b[ 2 ] - a[ 2 ], b[ 1 ] - a[ 1 ] )
oPie:End()
oWnd:End()
...
I get this runtime error:
Error description: Error BASE/1087 Argument error: --
Args:
[ 1] = U
Stack Calls
===========
Called from: window.prg => (b)TWINDOW:TWINDOW(460)
Called from: window.prg => TWINDOW:RELEASEDC(0)
Called from: tgraph.prg => TGRAPH:PRINT(1505)
Help?
Thank you,
Reinaldo.