-
$makelist WITH column names / maxc() WITHOUT column names
<div>Dear $all,</div>
How do I get column names into a list created with $makelist, or get the maximum of a column with cmax() or $maximum()?
Below is my useless code.
Thanx in advance!
Regards
Uwe
# Defining a list with Column names
Do llFormObjectsOrig.$define(lcName,liLeft,liTop,liWidth,liHeight,liRight,liBottom)
#getting a list of remoteform objects, but without column names
Do $libs.MultiToolDB.$remoteforms.rfStartbildschirm.$objs.$makelist($ref.$name,$ref.$left,$ref.$top,$ref.$width,$ref.$height,$ref.$left+$ref.$width,$ref.$top+$ref.$height) Returns llFormObjectsOrig
# $makelist overwrites Definition, no no column names
# alternatively with $merge:
Do llFormObjectsOrigDef.$define(lcName,liLeft,liTop,liWidth,liHeight,liRight,liBottom)
# trying to get column names into list llFormObjectsOrig
Do llFormObjectsOrig.$merge(llFormObjectsOrigDef)
# Doesnt work, so try to get whatever the column name may be by:
Calculate lcColName as llFormObjectsOrig.Col6.$name
# is null
# now the reason for needing column names: function maxc requires them!:
Calculate liFormOldWidth as maxc(llFormObjectsOrig,llFormObjectsOrig.Col6.$name)
# throws an error
# alternatively, try this
Calculate liFormOldWidth as llFormObjectsOrig.Col6.$maximum()
# is null
# time to ask the forum!- This discussion was modified 7 months, 1 week ago by Uwe Smidt.
Log in to reply.