If Ins1 = "P" then
{
vString = RecNumber
Check_Medicaid ( )
If vValidityTest = "Failed" then
{
Notifyform (1)
@Color (RecNumber, 4, 14)
@Color (Ins1, 4, 14)
//Clear (Ins1)
// ThrowFocus (RecNumber)
@MsgBox ("Check Recipient#", "Medicaid Number is not Proper", "Correct Insurance if Needed, Record cannot be saved!!!")
}
Else
{
vValidityTest = "Passed"
RGBColor (RecNumber, 0,0,0,255,255,255)
RGBColor (Ins1, 0,0,0,255,255,255)
Notifyform (-1)
}
}
Else
{
vValidityTest = "Passed"
RGBColor (RecNumber, 0,0,0,255,255,255)
RGBColor (Ins1, 0,0,0,255,255,255)
Notifyform (-1)
}
Using Else statement resetting original colors on exit form event will solve the problem as in the above code. The color was set to draw attention of certain condition on exit form event. RBGColor ( ) command is much better than @Color ( ). One can get the RGB value from the property Viewer for various colors.
Changing the documentation in the Programming Guide need to be taken care of. I understand since we are moving to version 2.0 in near future it is by no means high priority work.