Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Problem using funcion SetDetailHeight, pb 6.5

$
0
0

In this following script, the function SetDetailHeight, return -1.

 

dsrx is a DataWindow with three nested Report Object, one of them has the name "resultado".

 

I don't understand what is wrong. Can somebody help me?

 

TIA,

AUGUSTO MERCHÁN

 

 

DataWindowChild    dwxx

long                    i,numf,err,altura

string                usos

//-----

dsrx.GetChild("resultado",dwxx)

altura=long(dwxx.Describe("datawindow.detail.Height"))

numf=dwxx.RowCount()

//Messagebox("numf/altura",string(numf)+"/"+string(altura))

//

for i=1 to numf

    usos=dwxx.GetItemString(i,"usos")

    if IsNull(usos) then usos=""

    if usos <> "" then

        err=dwxx.SetDetailHeight(i,i,altura*4)

//        Messagebox("height:"+string(err),altura*4)

    else

        err=dwxx.SetDetailHeight(i,i,altura)

//        Messagebox("height:"+string(err),altura)

    end if

next


Viewing all articles
Browse latest Browse all 2935

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>