dragRow

dragRow(): Integer;

The dragRow method of the Table class provides table-specific location information of the drag and drop processes that corresponds to that x (horizontal) and y (vertical) positions received from dragOver events during a drag operation. Similarly, when the dragged window is dropped, the window that it is dropped onto receives a dragDrop event.

The dragOver and dragDrop events specify the x and y location of the drag operation.

If the drag and drop process occurs over an empty part of the table, one of the row or column property values may still be a non-zero value, indicating that it is in a specific row or column.

The method in the following example shows the use of the dragRow method.

dragDrop(table: Table input; win: Window input; x: Real; y: Real) updating;
begin
    inheritMethod(table, win, x, y);
    if dragRow > 1 and dragColumn > 0 then
        row := dragRow;
        column := dragColumn;
        if text <> "" then
            calendar.changeType := calendar.ChangeType_Day;
            calendar.date.setDate(text.Integer, calendar.date.month,
                                  calendar.date.year);
        endif;
    endif;
end;