hi guys , i am getting the above error due to the following bit of code
reason for the error is that SDC_PAGE IS BYTE, Event_Record_INX is a word
although the code works for what is intend , i would like re do it so that it would not generate the warning error
Code:
' get block and page value from Event record Index - values 0-1023
IF Event_Record_IDX < 256 THEN
SDC_Block = (Current_Event*4) - 3 ' 1ST 256K BLOCK - records 0 -255
SDC_Page = Event_Record_IDX ' pages 0 - 255
endif
IF Event_Record_IDX => 256 AND Event_Record_IDX < 512 THEN
SDC_Block = (Current_Event*4) -2 ' 2ND 256K BLOCK - records 256-511
SDC_Page = Event_Record_IDX - 255 ' pages 256-511
ENDIF
IF Event_Record_IDX => 512 AND Event_Record_IDX < 768 THEN
SDC_Block = (Current_Event*4) -1 ' 3RD 256K BLOCK - records 512-767
SDC_Page = Event_Record_IDX - 511 ' pages 512-767
ENDIF
IF Event_Record_IDX => 768 THEN
SDC_Block = Current_Event * 4 ' 4TH 256K BLOCK - records 768-1023
SDC_Page = Event_Record_IDX - 767 ' pages 768-1023
ENDIF
Bookmarks