PDA

View Full Version : VB Question (range of numbers)



dhtseany
February 1st, 2008, 10:31 PM
Hi, my friend is getting hung up on a lesson for school.

How do you define a range of numbers in VB?

Ex:


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

aks44
February 1st, 2008, 11:03 PM
Wouldn't that do the trick?


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)