Changing constants in visual basic

Discussion in 'Visual Basic ( VB )' started by jessieros, Apr 27, 2010.

  1. jessieros

    jessieros New Member

    Joined:
    Apr 27, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am putting together a little programme to calculate VAT. I don't want to enter the current rate every time, so I have declared its value to be a constant.
    However, I would like to have an option to change it if the rate is changed. Is there any way of doing it from within the programme rather than having to change the code?
    When I try to do so via assignment I get an error message!
    Any suggestions gratefully received!
     
  2. MARVELOUS MUGARI

    MARVELOUS MUGARI New Member

    Joined:
    Apr 18, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    i think you have to put another algorythm:thinking:
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice