Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have ZERO coding experience so please be kind (I'm only a bookkeeper!)
I don't even know what tag to select so it's probably wrong.
Here is the section of code on my invoice:
Begin UserDefinedField Database
Type = 4
Top = 3.697917
Left = 0
Height = 0.1666667
Width = 1.25
FontBold = False
FontUnderline = False
FontName = Arial
FontSize = 9.75
FontItalic = False
FontStrike = False
ForeColor = 0
Description = Line Item - Quantity
Format =999,999,999.9999-
VisualInfo = 3
Frequency = 2
FieldCode = DQTY
TableName = ARInvoiceLineItem
DbFieldTyp = 2
TFieldName = ARInvoiceLineItem.Quantity
END
I know the problem is the 999 number (anyone could figure that out). I've gotten it down to showing Qty. "1." but cannot remove the decimal point. Can anyone help?

What I have tried:

Changing the 999,999,999.9999- to:
999,999,999.
makes my Qty. display as: 1.
Taking away the decimal point and it tells me the form has an error when I try to print it in the program it originates from.
If anyone answers please speak VERY basically and specifically I don't know any coding terms.
Thank you in advance!
Posted
Comments
Richard Deeming 16-May-16 12:12pm    
Do you know what program you're using? There's nothing obvious that matches the format of that code block on Google.
OriginalGriff 16-May-16 12:15pm    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
And "Linux" is an operating system, not something your would normally use to process numbers directly. If you like, it's like saying "I can't add numbers correctly" and saying "it's an iPhone" - it doesn't tell us what App you are trying to enter the numbers with!
I'm guessing it's some kind of spreadsheet or database, but we have no idea what kind, or how you are displaying the "Qty" on your invoice. So please, try to explain more precisely what you are doing so we even know what questions to ask you! :laugh:
Use the "Improve question" widget to edit your question and provide better information.
Steely deb 16-May-16 13:14pm    
how can I help clarify? I checked Properties and it didn't tell me a program name. This is just all in a program file that came with a application we use called The Construction Manager in our C drive. It is a basic sales invoice that gives Qty, item name, item cost, total amt. etc. I only put the lines of code that deal w/the qty but there is a ton more lines for every category on the invoice. Every adjustment I make to the 999 number changes how the Qty. is displayed on the invoice. I just thought maybe it was a universal coding question that someone could just say "ok change that 999 number to this and it will display a whole number" Please let me know what other info I could give to help, and thank you.
OriginalGriff 16-May-16 14:02pm    
OK - in the application is there a "help" or "about" at all?
If so, does that list a company who might have written it, or (better) give a web address / email?
Steely deb 16-May-16 14:09pm    
I must sound so stupid, I'm really not I promise! The Construction Manager is it's own thing, it's got A/P, A/R, G/L etc. when you go to their help all it gives you is help topics for those things. I'm not even supposed to be touching the code so they don't give instructions for that. The .txt document that I've been toying with opens up in notepad, and that definitely does not offer any help! I'm starting to feel maybe I should just give up and live with the 1.0 quantity. But we sell conveyors and steel structures, we won't ever have a fraction of one so it really bothers me!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900