![]() |
Visual Basic
:confused: Please help me. I am writing a program in visual basic to create invoices for a future fictional buissness. I cannot find any sample code of cash registers. If you have any please tell me
:Thanx: |
Re: Visual Basic
VB isn't my speciality, even though I do know some. What exactually do you want? Do you want a sort of interface like a cash register, code that processes functions that a cash register might have, etc.?
|
Re: Visual Basic
Quote:
|
Re: Visual Basic
Quote:
What do you mean by "sample code of cash registers"? Also, what edition and version of VB are you using? EE has a bunch of helpful controls. And how do you plan to store data about products? Like name, ID, price, etc. And what 'distribution' method are you going to do? LAN, DDE, multi form, what? All of this effects what you use and how you do it. |
Re: Visual Basic
Quote:
|
Re: Visual Basic
Can we see your code??? Or is it a secret?
|
Re: Visual Basic
are you compileing your variables before you try and sum them or is it an after affect
ie. function sample(x,y,z,p,d,q) sum = x+Y+Z+P+D+Q or sum1 = x+y+z sum2 = P+D+Q Total = sum1 + sum2 i have found that doing inbetween steps like example 2 under each part of your program works better |
Re: Visual Basic
Quote:
Are you using Quanity textboxes, too? say:
So: Code:
const RC_Price as currency = 500 'Sub type of variant |
Re: Visual Basic
I agree with Astronouth7303 200% what are you doing using a picture box!!!???!!?!!?!!? If you don't want people to be able to change the value then even using a label would be better then a picture box!
|
Re: Visual Basic
probably because he is using Print() so that he doesn't have to deal with linebreaks and the previous contents. however, i agree that a textbox is probably better here - the small amount of extra code is worth it.
i'd probably recommend a global variable to keep a running total in. |
Re: Visual Basic
If you look at my code, I use variables for storing values and controls to display them. You could use the controls for storing values (VB handles conversions). But this introduces errors (possibly).
|
Re: Visual Basic
I just found something out about VB: it's predictable! :D lol
my brother (Bro) has been doing VC++ for a few months and has totally forgoten how to use VB, and I'm helping him make a control (Or: telling him he has to use "Not A" instead of "!A") |
Re: Visual Basic
Quote:
P.S. VB gives me shivers. ;) Go Java and C++. :) |
| All times are GMT -5. The time now is 11:08. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi