Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display minus sign on an input/output field 1

Status
Not open for further replies.

TracyV

Programmer
Nov 24, 2003
35
US
I'm trying to display a minus sign when a user enters a monetary value on the screen and uses the field minus key. Instead of displaying a minus (-) sign a bracket (}) is displayed at the time of input. If the field is output only, edit is displayed correctly. It's only when the user is actually entering the data that the bracket is displayed instead of the minus. Anyone have any suggestions???

Thanks!!!!!!!!!!
 
I believe that would be the EDIT CODE you're using. Try using M. Minus at the end and no zero balance.

FYI

Robert
 
I thought it would be the edit code as well, but it's not the case. I've tried all the edit codes, including the IBM supplied user defined edit codes 5-9. Like I said, the field displays correctly if its an OUTPUT field, its when it's both INPUT and OUTPUT (B) and the user uses the field minus the bracket (or other characters) replace the last number in the field and does not show a minus sign. I'm not sure if this is a data type problem or what. I've tried changing the data types as well and still get the same results.
 
I've seen exactly what you're talking about in one of the programs I wrote. I just went back into that display file and to fix the problem you don't use ANY edit code.

I just recreated your problem by applying an edit code to that input/output that was giving me problems before.

Change it to SIGNED NUMERIC with NO EDITING and it works fine.

Hope that helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top