VOTools for Visual Objects  
and Vulcan.NET  

bBrowser => Tips & Tricks => How to move a column by source code    




 from bBrowser
1.4
  bBrowser 1.4 (Limited)
yes
 

How to move a column by source code

To move an opened column, at first the column must be closed with the method bBrowser:CloseColumn(). Afterwards with the method bBrowser:OpenColumn() the column must be opened again.

The following code fragment moves the column #LASTNAME at the position 1:

  LOCAL oColumn   AS bDataColumn

oColumn := oBrowser:CloseColumn(#LASTNAME, True)
IF !Empty(oColumn)
  oBrowser:OpenColumn(oColumn, 1)
ENDIF

Copyright © 2003-2015 BEFO GmbH