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