Results 1 to 2 of 2

Thread: VB Question (range of numbers)

  1. #1
    Join Date
    Mar 2007
    Location
    Madison, OH
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    VB Question (range of numbers)

    Hi, my friend is getting hung up on a lesson for school.

    How do you define a range of numbers in VB?

    Ex:
    Code:
    let text_box = "$5.00" if qty_box = 1-5
    I know in MySQL what I'm talking about is (1,5)

    Any suggestions?

    Thanks,

    Sean
    Code:
    </Bush><Obama>

  2. #2
    Join Date
    May 2007
    Location
    Paris, France
    Beans
    927
    Distro
    Kubuntu 7.04 Feisty Fawn

    Re: VB Question (range of numbers)

    Wouldn't that do the trick?

    Code:
    if (qty >= 1) and (qty <=5) then
        let ...
    (syntax to be adjusted, it's been sooo much time since I didn't touch VB... but you get the idea)
    Not even tinfoil can save us now...

Bookmarks

Posting Permissions

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