Sorting(log.*)
Join(table.EID,log.LEID)
end_action_area
begin_screen
PrintText(0,0,0,"LOG:")
PrintExp(21,0,0,noofrec(log))
PrintText(105,0,0,"3.2.1")
PrintText(53,0,0,"OF:")
PrintExp(69,0,0,count(log.*))
DrawLine(0,6,127,6)
PrintText(0,7,2,"TEID:")
PrintField(40,7,2,table.EID)
IconFindCol(75,50,table.EID,0)
PrintText(0,17,2,"LEID:")
PrintField(40,17,2,log.LEID)
PrintText(0,27,2,"Event:")
EditGlobalField(40,27,2,log.EVENT)
PrintText(0,37,2,"Value:")
EditMaskedField(40,37,2,log.VALUE)
PrintText(0,47,2,"Time:")
EditTimeField(40,47,2,log.TIME)
IconDelete(100,50,log,0)
IconAddRec(53,50,log,0)
DrawLine(0,63,127,63)
end_screen
begin_control_area
end_control_area
end_macro
END
Using Log
You can manage Log on HHR by two functions:
●
Sorting
●
Join
Join function defines relation between Table and Log, if you change a current
record number in Table, current record number in Log will change too.
If you create a new record in Table and fulfill column given as parameter in Join
function,
Without using this function displayed data form Log wouldn't have been connected
with current record from Table.
Function Sorting organize way of displaying data on HHR's LCD by this function we
can display all records from Log (according to Join function) by switching records
with Up and Down Arrow buttons. Or otherwise we can display all records from
Table with Up and Down Arrow buttons.
D01B2.4 HHR 3000 PRO Manual
59/75