Click here to Skip to main content
15,899,679 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Question on how to use two identical databases. Pin
Dangleberry12-Sep-03 1:41
sussDangleberry12-Sep-03 1:41 
GeneralRe: Question on how to use two identical databases. Pin
Dangleberry12-Sep-03 1:42
sussDangleberry12-Sep-03 1:42 
GeneralClosing Main Form Pin
Anonymous11-Sep-03 14:29
Anonymous11-Sep-03 14:29 
GeneralRe: Closing Main Form Pin
didijoe11-Sep-03 16:08
didijoe11-Sep-03 16:08 
GeneralAbout text and label Pin
Meysam Khayatan11-Sep-03 11:59
Meysam Khayatan11-Sep-03 11:59 
Generaldeveloping my own web browser Pin
mikanu11-Sep-03 11:04
mikanu11-Sep-03 11:04 
GeneralRe: developing my own web browser Pin
Dave Kreskowiak12-Sep-03 8:01
mveDave Kreskowiak12-Sep-03 8:01 
GeneralSimple problem Pin
ivanji11-Sep-03 4:50
ivanji11-Sep-03 4:50 
Cry | :(( Hello everyone.

I've got a very small problem, for most of you this could be very stupid, but hey I'm new in the programming world.

I need to create a small program using VB 6.0 but I have a small problem with it.

Here it goes,

I have a form with a command button, when clicked is gonna open an inputbox asking for a value, but I need to say that if the value is less than 45 please display a word, if it's equal or greater than 45 but less than 60 display a different word, if it's equal or greater than 60 but less than 70 display another word and if it's equal or greater than 70 but less than 80 display other word.

I've got something like this in the code:

dim weight as single

weight = inputBox("Please type weight...")

If weight < 45 then
label.Caption = "reject"
Else

If weight >= 45 ... HERE IS WHERE I HAVE THE PROBLEM, i DON'T KNOW HOW TO WRITE THIS STATEMENT WITH the two values
label.Caption = "Small"
Else

If weigh ...the same ...
label.caption = "medium"
Else

(...)

End if
End if
End if


Please help me!!! thanks very much for any help


ASP.NET capo
GeneralRe: Simple problem Pin
NetPointerIN11-Sep-03 9:35
NetPointerIN11-Sep-03 9:35 
GeneralRe: Simple problem Pin
Ray Cassick11-Sep-03 9:59
Ray Cassick11-Sep-03 9:59 
GeneralRe: Simple problem Pin
Member 57284911-Sep-03 11:57
Member 57284911-Sep-03 11:57 
GeneralRe: Simple problem Pin
ivanji11-Sep-03 12:41
ivanji11-Sep-03 12:41 
GeneralPass array Pin
sardinka11-Sep-03 4:42
sardinka11-Sep-03 4:42 
Generalreadin excel data into a dataset Pin
Anonymous11-Sep-03 4:10
Anonymous11-Sep-03 4:10 
GeneralGraphs connected to Interface &amp; db Pin
Inneedofluv10-Sep-03 19:57
Inneedofluv10-Sep-03 19:57 
GeneralI want to lock the Access database (VB.6) Pin
Nazila Naderi10-Sep-03 15:40
Nazila Naderi10-Sep-03 15:40 
GeneralRe: I want to lock the Access database (VB.6) Pin
Meysam Khayatan11-Sep-03 12:03
Meysam Khayatan11-Sep-03 12:03 
GeneralEasy VBScript question about the file pointer Pin
monkeyman9910-Sep-03 12:10
sussmonkeyman9910-Sep-03 12:10 
GeneralRe: Easy VBScript question about the file pointer Pin
NetPointerIN11-Sep-03 9:42
NetPointerIN11-Sep-03 9:42 
GeneralBasic DataGrid Navigation. Pin
Steverty10-Sep-03 10:32
Steverty10-Sep-03 10:32 
Generalconverting vb double to vc double Pin
Member 57284910-Sep-03 8:04
Member 57284910-Sep-03 8:04 
GeneralRe: converting vb double to vc double Pin
Nic Rowan10-Sep-03 23:44
Nic Rowan10-Sep-03 23:44 
GeneralRe: converting vb double to vc double Pin
Member 57284911-Sep-03 4:07
Member 57284911-Sep-03 4:07 
GeneralRe: converting vb double to vc double Pin
Nic Rowan11-Sep-03 8:06
Nic Rowan11-Sep-03 8:06 
GeneralConvert from VS.Net 2003 to VS.Net Pin
Orcrist10-Sep-03 6:12
Orcrist10-Sep-03 6:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.