Syntax 2 For positioning objects within a DataWindow
Description
Moves an object within the DataWindow to another band or changes
the front-to-back order of objects within a band.
Controls
DataWindow controls and DataStores
Syntax
1 |
<span>dwcontrol</span>.<span>SetPosition</span> ( <span>objectname</span>, <span>band</span>, <span>bringtofront</span> ) |
Argument |
Description |
---|---|
dwcontrol |
The name of the DataWindow control or |
objectname |
The name of the object within the DataWindow |
band |
The name of the band or layer in which Layer names are background and foreground. Band names are detail, header, footer, summary, header.#, # is the group level number. Enter the empty string |
bringtofront |
A boolean indicating whether you want
|
Return Values
Integer. Returns 1 when it succeeds and
-1 if an error occurs. If any argument’s value is null, SetPosition returns null.
Examples
This statement moves oval_red in dw_rpt to
the header and brings it to the front:
1 |
dw_rpt.<span>SetPosition</span>("oval_red", "header", TRUE) |
This statement does not change the position of oval_red
, but does bring it to the front:
1 |
dw_rpt.<span>SetPosition</span>("oval_red", "", TRUE) |
This statement moves oval_red to
the footer but does not bring it to the front:
1 |
dw_rpt.<span>SetPosition</span>("oval_red", "footer", FALSE) |