How to get the Index of the text line in the data grid form?
Posted: Fri Dec 27, 2013 4:33 am
Hi,
At present I have this code to put the Index into msg box:
on mouseUp
put the dgHilitedIndexes of group "mycategories_compact" into theIndex
put theIndex
end mouseUp
but it shows the line number of the visible line on the card.
Try this in the attached stack:
Select 'Short' checkbox in the 'Select Categories' card, click on Save button and there will be 12 lines visible. When I click on 5th line that is visible (use checkbox to select it!) and click on 'Show Index of selected line' button then the message box displays 5, so it's the line number of the visible line. The Index of that line I expect to be 15.
How to change that code to display the real Index of the line instead of the line number?
I need Indexes of the selected lines, on whatever card on the stack they are selected, to show them in the 'My Selection' card and to save them in a preferences file mySelections.txt file.
Thanks for any help with this.
keram
At present I have this code to put the Index into msg box:
on mouseUp
put the dgHilitedIndexes of group "mycategories_compact" into theIndex
put theIndex
end mouseUp
but it shows the line number of the visible line on the card.
Try this in the attached stack:
Select 'Short' checkbox in the 'Select Categories' card, click on Save button and there will be 12 lines visible. When I click on 5th line that is visible (use checkbox to select it!) and click on 'Show Index of selected line' button then the message box displays 5, so it's the line number of the visible line. The Index of that line I expect to be 15.
How to change that code to display the real Index of the line instead of the line number?
I need Indexes of the selected lines, on whatever card on the stack they are selected, to show them in the 'My Selection' card and to save them in a preferences file mySelections.txt file.
Thanks for any help with this.
keram