Textbox ignores pgm-updated value when error condition on
Posted: Thu Sep 22, 2011 3:48 pm
I have a text entry box for hours, but want to restrict it to 1/2 hour increments. I added code to round the value entered to the nearest .5, but I also wanted to draw the user's attention to the change. I thought I'd set on an error indicator and message saying "Rounded to the nearest 1/2 hour", but when I turn on the error indicator, the value the program changed the field to is ignored when the grid is redisplayed.
I haven't been able to find another good way to show the message right at the entry like the error message does. Any ideas?
I guess I could change the color of the field to draw there attention to it and put the text somewhere else, but I kind of like the error message box pointing right at the value.
--Bryan
Worse yet, I tried attaching that message to another field and the subfile still wouldn't reflect the change to the hours that the program made. If I don't set the error condition indicator, the hours field re-displays as adjusted by the program.
I haven't been able to find another good way to show the message right at the entry like the error message does. Any ideas?
I guess I could change the color of the field to draw there attention to it and put the text somewhere else, but I kind of like the error message box pointing right at the value.
--Bryan
Worse yet, I tried attaching that message to another field and the subfile still wouldn't reflect the change to the hours that the program made. If I don't set the error condition indicator, the hours field re-displays as adjusted by the program.