Datr(x).a = x: Datr(x).b = x * 2: Datr(x).c = x * 5
Datr(x).d = "even"
Datr(x).d = "odd"
oi
= 1: maxoff
= UBOUND(Datr
) - 20: offset
= 0
PRINT " Scroll with mouse wheel. ESC to quit"
PRINT Datr
(a
+ offset
).a;
" is "; Datr
(a
+ offset
).d;
", x 2 = "; Datr
(a
+ offset
).b;
", x 5 = "; Datr
(a
+ offset
).c
Mouse_Loop oi, maxoff, offset
'-------------------------ALGORITHM--------------------------------------------------CLEARED
' SUB: Mouse_Loop
'
' Purpose:
' Primary mouse input loop. Controls mousewheel scrolling and conditions
' x,y position data.
'
' Passed Variables:
' var sends whether data list is extensive enough for using offset printing values
' var2 sends maximum allowed offset value
'
'------------------------------------------------------------------------------------
var3
= var3
+ _MOUSEWHEEL ' mousewheel offset determines starting element to print IF var3
< 0 THEN var3
= 0 ' don't go beyond bottom of array IF var3
> var2
THEN var3
= var2
' don't go beyond the end of the array 'mouse_y = _MOUSEY ' globals used where mouse positions are important.
'mouse_x = _MOUSEX