Ten2008
730 pts. | May 28 2009 6:12PM GMT
Hi thanks for the feed back. But i still have a doubt. When i tried to enter a negative value into a packed field in a PF (like -1234.56) the keyboard is getting locked for entering - sign. Please explain how to avoid this. thanks again
Ram
WilsonAlano
2005 pts. | May 28 2009 7:58PM GMT
Hi Ram,
To allow enter a sing in a DSPF you must use a “keyboard shift” ‘S’ or ‘Y’ if you will use an edit code or edit word.
The minus sign must be entered after the number. 1234.45-
Regards
Wilson
LBurkett99
800 pts. | May 29 2009 10:28PM GMT
Enter your number (ie., 1234.45), then use the Field Minus key. I use Client Access, and the default for this key is the minus key on the 10-key pad.
Having done this the field will display with a non-numeric character in the right-most position of the field, but will show as 1234.45- when re-displayed on the screen.
Leo Burkett
Yorkshireman
3200 pts. | Jul 30 2009 3:42PM GMT
Ignore the sign at the bit level.
If you use DFU or any editor, it will transalte, as Leo says.
If you’re editing the PF at byte level, then check the manuals for the character map or write yourself a byte dump and understand which bit is the sign bit in the field.
A character ‘D’ for instance is merely a 5 with its sign bit set to negative, ditto for A, B etc. F indicates all bits set, which is taken as positive. I forget the other defaults for 1110, 1100 1101 etc -
Mainly - just use an editor and let the compilers take the strain..






