Results 1 to 20 of 27

Thread: VB6 help needed!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    VB6 help needed!

    Never learned visual basic while in school. Altough i hear its pretty easy.

  2. #2

    VB6 help needed!

    Originally posted by: Lego
    Never learned visual basic while in school. Altough i hear its pretty easy.
    .................................................. .................................................. .................................................. .............

    mainva | aptigo | JTD out

  3. #3
    Moderator Raven's Avatar
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Age
    43
    Posts
    2,836

    VB6 help needed!

    You'll need to declare each tax value as a Global Constant Variable. If you're studying VB you should know what I'm talking about. If not, post here.
    I think I know precisely what I mean
    when I say it's a schpadoinkle day

  4. #4

    VB6 help needed!

    I know what your talking about, but you mean that I have to declare 50 global constants? And you mean 'const=x' in the general declarations area?

    mainva | aptigo | JTD out

  5. #5
    Moderator Raven's Avatar
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Age
    43
    Posts
    2,836

    VB6 help needed!

    Yeah, you will have to declare all the variables. Annoying, but it has to be done for the type of program you're talking about. And it would be:

    Const curWhateverState As Currency = 0.23

    or whatever the values are.
    I think I know precisely what I mean
    when I say it's a schpadoinkle day

  6. #6

    VB6 help needed!

    Oh, well, I guess I have to. Now, about the menu, I have some modules that will allow me to do a Windows-like menu where, if there are too many items, it will shrink and have the arrows at the top and bottom, you know?

    Well, I will try to do it with only like 4 or 5 states, to start. Then I will try that extended menu, or a pop-up menu, and then RAR the project and upload it for you if you want to look at it.

    mainva | aptigo | JTD out

    EDIT: Would I have to put anything new in the code for the calculations? I just tried declaring the four states as Const's, and then ran it, and the tax always comes out to $0.75, even if I use NH tax, which there is none....Hm....

    EDIT 2: I just tried declaring tax = mnuTax, and now the tax comes up as the price in parentheses, such as ($14.98) and then says the amount owed is nothing....o_0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •