Bug #5875
Initial screen-value of a formatted empty string is incorrect
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
History
#1 Updated by Alexandru Lungu over 4 years ago
The following testcase shows incorrect initial screen-value:
define frame fr with size 70 by 20.
define button btn.
define var txt as char format "b9" view-as fill-in.
display txt btn with frame fr.
enable txt btn with frame fr.
on choose of btn do:
txt:screen-value = "3". // also try with "" instead of "3"
end.
// compare to string("3", "b9").
// compare to string("", "b9").
// compare to display "3" format "b9" with frame fr.
// compare to display "" format "b9" with frame fr.
wait-for close of default-window.
In some scenarios (#5421 and #5787), a formatted empty string shouldn't display the fill chars. However, the test above displays the fill chars, even if the formatted string is empty.