Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I scroll the datawindow to that column?

Status
Not open for further replies.

khalidfadlo1

Programmer
Aug 12, 2014
6
EG
setcolumn moves the cursor to the column you set as a parameter in the set column command but it doesn't scroll the datawindow to that column, so how can I scroll the datawindow to that column?
 
i mean when th width of the datawindow object is bigger to hide the column which i want to scroll to !!!!!!!!!!!!!
 
i mean when the width of the datawindow object is bigger then that of the datawindow control that hide the column which i want to scroll to !!!!!!!!!!!!!
 
Off the top of my head... In the event/function calling the SetColumn( ), you'll also need some describe/modify calls to the DW.

li_MyX = dw.Describe( "MyColumnName.X" )
dw.Modify( "DataWindow.HorizontalScrollPosition = " + String( ll_MyX ) )
 
Describe returns a string so

ls_x = dw.describe("colname.X")
dw_modify("datawindow.horizontalscrollposition = " + ls_x)

"Nature forges everything on the anvil of time"
 
What mbalent said. Mine would throw a datatype mismatch error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top