Dynamically get selected Lines on form

StaminosStaminos Member Posts: 68
Hi,

I try to get the selected lines on a form.
I create this function
GetSelectedLines()
CurrForm.SETSELECTIONFILTER(lLine);
SelectedLines := lLine.COUNT;

SelectedLines is variable where I store current selected lines

And I put this function on trigger OnNextRecord

But I have the selected lines one clic later. ](*,)
I try to find which event can be catch just at the end of lines' selection

If someone have a idea...

Answers

  • ajhvdbajhvdb Member Posts: 672
    Do't invent the weel :shock: copy it from already made code f.i. Form 22
  • StaminosStaminos Member Posts: 68
    scuse me for my bad english
    that was not my question

    i just want to have some kind of "AfterGetCurrentRecord" but at the end of my selection of multiple lines.
    without any event but my last line selected..

    and then i have to show current totals of all the lines i selected

    any idea if it's possible ? :roll:
  • garakgarak Member Posts: 3,263
    you need a COUNT of the selected lines? If yes, there is no event for this. Because if you select the line (mark it blue), all the triggers like OnNextRecord() or OnAfterGetCurrRecord() are finished before. So, you have two options, timer (formtimer or dll timer) or press a button.
    but don't forgett. If no line is "blue", the function SETSELECTIONFILTER() returns the Current Line.

    Regards
    Do you make it right, it works too!
  • StaminosStaminos Member Posts: 68
    Thank a lot to your response Garak

    I had finally choose button solution
  • garakgarak Member Posts: 3,263
    Please and welcome
    Do you make it right, it works too!
Sign In or Register to comment.