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!

Scrolling two tables in unison

Status
Not open for further replies.

woodyinoz

IS-IT--Management
Jan 8, 2002
215
GB
Hi all,

I've got two table frames upon a form, both the same size and both having horizontal scroll bars.
What I want to know is, can I scroll the top table and get the bottom table to also scroll using some code?
Basically I want the info in both tables to always line up.

Can anyone help?

Thanks in advance,

Woody.
 
This sort of thing will track actions in one table and modify the record position of another other. The code goes in the action step of the table you are scrolling.

method action(var eventInfo ActionEvent)

var
table1tc TCursor
table2tc TCursor
endVar

table1tc.attach(TEST_TAB_1)
table2tc.attach(TEST_TAB_2)

table2tc.moveToRecNo(table1tc.RecNo())
TEST_TAB_2.resync(table2tc)

endMethod


You will probably need to add some checking for table length etc.

Hope this helps

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top