Hi all,
I am currently running some code that changes the colour of text in a forms table depending upon certain field values.
The code is attached to the field holding the colour coded text and is shown below:
method depart(var eventInfo MoveEvent)
if Thick2 <> Thick3.value AND NOT PlateID.isblank()
then
msginfo ("NESTING ERROR", "You have nested a " + Thick2.value + " Thk item on a " + Thick3.value + " Thk plate"
endif
if Thick2 <> Thick3.value AND NOT PlateID.isblank()
then
PlateID.font.color = Red
else
PlateID.font.color = Black
endif
endMethod
AND
method newValue(var eventInfo Event)
if Thick2 <> Thick3.value AND NOT PlateID.isblank()
then
PlateID.font.color = Red
else
PlateID.font.color = Black
endif
endMethod
This works fine if I scroll through each record individually but when I use either the scroll bar or page down and page up to scroll through the table all text in the specified field turns red.
I have no idea why this is happening and would appreciate a helping hand on the matter!
Thanks in advance,
Woody.
I am currently running some code that changes the colour of text in a forms table depending upon certain field values.
The code is attached to the field holding the colour coded text and is shown below:
method depart(var eventInfo MoveEvent)
if Thick2 <> Thick3.value AND NOT PlateID.isblank()
then
msginfo ("NESTING ERROR", "You have nested a " + Thick2.value + " Thk item on a " + Thick3.value + " Thk plate"
endif
if Thick2 <> Thick3.value AND NOT PlateID.isblank()
then
PlateID.font.color = Red
else
PlateID.font.color = Black
endif
endMethod
AND
method newValue(var eventInfo Event)
if Thick2 <> Thick3.value AND NOT PlateID.isblank()
then
PlateID.font.color = Red
else
PlateID.font.color = Black
endif
endMethod
This works fine if I scroll through each record individually but when I use either the scroll bar or page down and page up to scroll through the table all text in the specified field turns red.
I have no idea why this is happening and would appreciate a helping hand on the matter!
Thanks in advance,
Woody.