@K in picture clause and enter of ".", decimal point first
Posted: Mon Jun 27, 2011 11:16 am
Say you have code like this.
a := 100.00
@ 1,1 DCGET a PICTURE '@K 999.99'
In clipper, if any key is entered other than cursor keys, the field is cleared out prior to accepting the entered characters.
However in Xbase++/Express++, it works slightly differently. If the user enters .50, the field becomes 100.50, versus .50 for clipper. If they enter 0.50, the 0 causes the field to be first cleared and then the rest of the data is taken, resulting in 0.50.
Is this how it is supposed to work with Xbase++/Express++ and if so, is it possible to get a configurable get/set option that allows it to be one way or the other. I just ran across this today during some testing and a user commented on its behavior of a module finally moved from clipper to windows.
Cliff.
a := 100.00
@ 1,1 DCGET a PICTURE '@K 999.99'
In clipper, if any key is entered other than cursor keys, the field is cleared out prior to accepting the entered characters.
However in Xbase++/Express++, it works slightly differently. If the user enters .50, the field becomes 100.50, versus .50 for clipper. If they enter 0.50, the 0 causes the field to be first cleared and then the rest of the data is taken, resulting in 0.50.
Is this how it is supposed to work with Xbase++/Express++ and if so, is it possible to get a configurable get/set option that allows it to be one way or the other. I just ran across this today during some testing and a user commented on its behavior of a module finally moved from clipper to windows.
Cliff.