thanks for the reply , unfortunatly i cant change the value of Event_Record_IDX in any routine , and still wanted to avoid allocating a new word varable

this solves the problem by making SDC_PAGE A WORD var