Click or drag to resize

DataColumn.VisualPos Property

X#
Returns the number of the data column with respect to its visual position within a data browser from left to right.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL PROPERTY VisualPos AS USUAL GET 
Request Example View Source

Property Value

Type: Usual
The number of the data column with respect to its visual position within a data browser from left to right.
Examples
The following example shows how DataColumn:VisualPos may be used to save the current layout of a browser to an .INI file:
X#
 1METHOD SaveLayout() CLASS MySubForm
 2LOCAL wCount AS DWORD
 3LOCAL aColumnInfo := {} AS ARRAY
 4LOCAL oDataColumn AS DataColumn
 5FOR wCount := 1 UPTO SELF:Browser:ColumnCount
 6oDataColumn := SELF:Browser:GetColumn( wCount )
 7AADD( aColumnInfo, {oDataColumn:NameSym, oDataColumn:VisualPos} )
 8NEXT wCount
 9SaveSettings( aColumnInfo )
10RETURN NIL
See Also