LB-Get event row index

From Vectorlab
Jump to: navigation, search


Function to return directly the selected row or -1. By Orso B. Schmid

{ Orso ******************************************** }
{ if the row hasn't been clicked yet, getLBeventInfo returns -1 }
FUNCTION LB_GetEventRow(d, LB: LONGINT): INTEGER;
	VAR
		row, temp_i : INTEGER;
	BEGIN
		IF NOT GetLBEventInfo(d, LB, temp_i, LB_GetEventRow, temp_i) THEN
			LB_GetEventRow := -1;
	END;