DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

table set selection

Hi,
in a SUD-table I want to start a table with a specific row already selected. I.e. if the costumer leaves the SUD f.e. with row 5 selected and comes back after DAC-measurement, he should see row 5 already selected.
How can I do this?
Thanks in advance
Klaus
0 Kudos
Message 1 of 3
(3,763 Views)
Hello Klaus!
 
Assuming you are working with a standard table and not a XTable this code might help you:
Sub RowSelect(ByRef nRow)
  Dim i
 
  ' Remove current selection
  Do While Table1.SelectedCells.Count > 0
    Call Table1.SelectedCells.Remove(1)
  Loop
 
  ' Select all cells in the desired row
  For i=1 To Table1.Columns.Count
    Call Table1.SelectedCells.Add(nRow,i)
  Next
End Sub
Note: Table1 might be changed to your table name.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(3,755 Views)
Hello Matthias,
thank you, I'll try that.
kind regards
Klaus
0 Kudos
Message 3 of 3
(3,744 Views)