PDA

Click to See Complete Forum and Search --> : a couple of stupid questions


Insane Killa
Dec 7th, 1999, 05:38 AM
Ok these questions are gonna make me look like a real dumb ass but i am so I'll ask anyway.

1. what is a splash screen? I've heard alot about them but have actually understood what one does.

and if u think its useful can someone tell me how to make one?

2. in vb how do you say between as in if a number in a text box = between 1 and 17 how would you say that so that it would include all the decimal places and everything.

3. how do you say if the number equals a certain number or higher? as in

if text1.text = 54 or higher then
what ever

thanx

Joacim Andersson
Dec 7th, 1999, 05:55 AM
A splash screen is a window that you would pop up while the rest of your project is loading.

You can use the following operators to do any comparasing:

= -> Equal
< -> Less then
> -> Greater then
<= ->Equals or less then
>= ->Equals or greater then
<> ->Not equal

So the answer to question 2 and 3 is as follows:

Dim iNum As Integer
iNum = Val(Text1)
If iNum >= 1 And iNum <= 17 Then
MsgBox "The number is between 1 and 17"
End If
If iNum >= 54 Then
MsgBox "The number is greater then or equal to 54"
End If

Good luck!


------------------
Joacim Andersson
joacim@programmer.net
joacim@yellowblazer.com
www.YellowBlazer.com (http://www.YellowBlazer.com)