Is this an age related thing?
Find a Conversation
Is this an age related thing?
| Thu, 04-12-2007 - 9:45am |
(Totally OT, not SAH/WOH related, so feel free to not respond)
I went out with 5 other women to dinner last night.

Pages
OK fine:
NOTE: This is visual Basic
===================================================================
SUB Print_Separate_Invoices(INVOICEID LONG)
dim QUERY_STRING as String
dim SNAPSHOT as Object
dim LAST_SEAT_NUM as long
dim TAX_TOTAL as Currency
dim TOTAL_AMOUNT as Currency
COMMPORT.OPEN <>
-- calls a store procedure - assume sql server
-- returns data by seat #
QUERY_STRING = "GET_INVOICE_BY_SEAT " & INVOICEID
<< CALL TO DATABASE HERE TO GET DATA -- INCLUDES LOGIN INFO >>
LAST_SEAT_NUM = 0
WHILE NOT SNAPSHOT.EOF
IF LAST_SEAT_NUM <> SNAPSHOT("SEAT_NUM") THEN
IF LAST_SEAT_NUM > 0 THEN
<>
COMMPORT.WRITE " Sub Total: " & TOTAL_AMOUNT
COMMPORT.WRITE " Taxes: " & TAX_TOTAL
COMMPORT.WRITE " TOTAL: " & TOTAL_AMOUNT + TAX_TOTAL
COMMPORT.WRITE " --------------------------- "
COMMPORT.PRINT
END IF
<< NEW PRINTOUT >>
COMMPORT.WRITE "COMPANY NAME"
COMMPORT.WRITE "Address Info"
<< Re-Initialize Variables >>
TAX_TOTAL = 0
TOTAL_AMOUNT = 0
END IF
<< WRITE TO 3Inch PRINTER COM PORT THE DESCRIPTION OF THIS LINE >>
<< EX: >>
COMMPORT.WRITE SNAPSHOT("FOOD_DESCRIPTION")
COMMPORT.WRITE " " & SNAPSHOT("AMOUNT")
TAX_TOTAL = TAX_TOTAL + SNAPSHOT("TAX")
TOTAL_AMOUNT = TOTAL_AMOUNT + SNAPSHOT("Amount")
LAST_SEAT_NUM = SNAPSHOT("SEAT_NUM")
SNAPSHOT.MOVENEXT
WEND
IF LAST_SEAT_NUM > 0 THEN
<>
COMMPORT.WRITE " Sub Total: " & TOTAL_AMOUNT
COMMPORT.WRITE " Taxes: " & TAX_TOTAL
COMMPORT.WRITE " TOTAL: " & TOTAL_AMOUNT + TAX_TOTAL
COMMPORT.WRITE " --------------------------- "
COMMPORT.PRINT
END IF
SNAPSHOT.CLOSE
COMMPORT.CLOSE
END SUB
=====================================
Note, that hunk of code is invoked by one button click.
Feel free to google visual basic.. including snapshots and recordsets. You will find thousands of pages that help developers debug code.
Added: if you want I will re-write it in ASP... or Provide the SQL Query used to pull information from the database
Edited 4/24/2007 9:36 pm ET by june774
"You need to relax iam not talking about coding, or knowing more that you! LMAO! Iam talking about my buisness and what i know. That is that you cannot split eight checks in one hit of a button! "
Yes you are, you're telling me it's not possible, so you're telling me you know coding well enough to think it cannot be done. You do NOT know coding. Knowing how to run a business IS NOT automatically knowing how to code.
Edited 4/24/2007 9:37 pm ET by june774
" your the one who "cliams" to be the expert" "
I would appreciate it if you avoided posting that EVER again. You are insinuating that I am not a software engineer simply because you used software once. Do you realize how UNBELIEVABLY dumb that assumption is?
I do not question you own a restaurant. I question how much you really know about software. 2 different things. You cannot offer me a SINGLE shred of evidence to support your side that it is ABSOLUTELY impossible to print with one click. See post 488. Google visual basic help sites. If you want I will provide you with links before the day is out.
You are debating with assumptions. No proof whatsoever. Yes you have experience with some software that cannot print with one click. Doesn't prove anything whatsoever. Any evidence to prove otherwise is ignored, and then the argument is deflected away so you do not have to own up to anything. terrible debate tactics.
And I should have put you on ignore 30 posts ago.
Not worth it...I already know the answer !!!!!!!!!!!!! they dont.
Edited 4/25/2007 12:17 pm ET by xenozany
The mentality of her posts baffle me. She admitted to not know coding more than me, then claims she KNOWS something cannot be done cause she used software once. Yikes, so frustrating. LOL. but I said before we run into clients like that often, and are the worst to deal with.
I want to prove my point more, but I have a personal policy about revealing personal information, and I wont post my employers web site to prove who I am... the coding terms are generic enough to not reveal anything. :)
Pages