Hi, There is an "dirty hack" (their words) to solve this problem in xhb code, and while I can do something similar in Harbour (although in less ugly way), I'm curious what is the purpose of "@RE" mask for numeric values? Seem like something invalid to me.
Viktor On 2010 May 14, at 15:10, Aleksander Czajczynski wrote: > Hi, > > This one confused me today and I'm just curious which would be "the most" > correct behaviour ;-) > I'm unable to enter any number with @RE picture in Harbour, reduced test-case > follows. > > Regards, AC > > PROCEDURE MAIN > LOCAL n := 0 > > /* > Clipper NG > E Displays date in British format > R Nontemplate characters are inserted > */ > > CLEAR > @ 1, 1 SAY "Works in Clipper 5.3b & xHarbour (@RE)" > @ 2, 1 GET n PICTURE "@RE 99.9999 xx/y" VALID n > 0 > READ > > @ 3, 1 SAY "Works in Clipper 5.3b & Harbour (@E)" > @ 4, 1 GET n PICTURE "@E 99.9999 xx/y" VALID n > 0 > READ > > @ 5, 1 SAY "@R alone works as expected in Harbour" > @ 6, 1 GET n PICTURE "@R 99.9999 xx/y" VALID n > 0 > READ > > > _______________________________________________ > Harbour mailing list (attachment size limit: 40KB) > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour