How can I change change columns dynamically in xBrowse
Thanks in advance
Otto
How can I change change columns dynamically in xBrowse
Thanks in advance
Otto
Otto:
Can you elaborate about what you want to do?
Randal


Otto,
The simplest thing to do is just define two browses both using the same DBF but opened twice. Then you can hide() one and show() the other. Since you have the DBF open in two workareas you don't have to worry about pointers, filters, sort orders, etc.
James
Otto
Other option is show or hide column
Mr. Otto
As Mr. Daniel advised Hide and show columns is one simple way if the change is simple.
Another way to dynamically change the view is by using the method ReArrangeCols( aCols, lRetainRest )
To show 'First', 'Last', 'City'
oBrw:ReArrangeCols( { "First", "Last", "City" }, .t. )
To switch to show 'First', 'Age', 'HireDate'
oBrw:ReArrangecols( { "First", "Age", "HireDate" }, .t. )