li_column1 = GetColumn() ls_columnname = GetColumnName() Send(Handle(This),256,9,Long(0,0)) ll_row2 = GetRow() li_column2 = GetColumn() //如果Column有变,说明还没到最后的Column,如果Row有变,说明还没到最后的Row If (ll_row1 <> ll_row2) Or (li_column1 <> li_column2) THEN RETURN 1 ll_last_row = RowCount() IF ll_last_row > 0 THEN IF ll_row2 = ll_last_row THEN //当前行为最后行