Hi,
I have run into a strange issue with PowerBuilder 12.5 and validation on a column not occurring correctly when the column has an editmask.
We have modified our application to change the text colour on a field when a validation issue occurs so that the user can quickly identify the problem and fix it without a disruptive message.
When editchanged fires we call our validation event to compare our depth columns (depth from and depth to) to verify that depth from is less than depth to and the depths are within a specified range.
When the column contains an editmask (##0.00) and the user edits an existing value, the edit mask displays a different value than what is actually stored in the column.
Example: Depth From: 0.00 Depth To: 10.00
User places their cursor ahead of the 10.00 and types 5. (decimal). The edit mask displays 5.00 but if I preform a gettext, the value in the field is 510.00.
My validation is failing in this case because 510 is outside my specified range.
Once the user types 0 (so 5.0) then the GetText returns 5.0 and my validation occurs correctly.
Question: Why does the editmask display a different value than what is actually in the field?
How can I fetch the value displayed in the edit mask vs the actual value in the field?
Thanks,
Karen