Here is the code I am using:
In Global Code =
#include "sbasic_include.sbas"
stat vFont as String
Subroutine Confirmation()
UnSetThisElement()
If @IsBlank(ThisElement) = False
{
If @AskUser("Has this scheduled date been confirmed by the client?", "", "")
{
RGBColor(ThisElement, 0, 0, 0, 255, 255, 255) // Black font for confirmed
}
Else If ThisElement = "Holiday"
{
RGBColor(ThisElement, 255, 0, 0, 255, 255, 255) // Red font for holidays
}
Else
{
RGBColor(ThisElement, 0, 255, 0, 255, 255, 255) // Green font for tentative
}
Attribute(ThisElement, ATTR_ID_FONT, "BArial") // Make font bold
FormCommit("")
}
End Subroutine
Then "On Element Exit" of each day (text area) I have the subroutine called.
This allows me to enter data for a particular day, and have the control to modify each day's text without affecting the other days.
Although, I really appreciate the response, will using the ON FORM events allow me this flexibility and control of each day?