|
-
Aug 10th, 2000, 01:39 PM
#1
Thread Starter
Junior Member
here's the code
If LCase(sev.value = "1" or sev.value = "2" or sev.value = "3") _
AND NOT LCase(onformopen.sev = "1" OR onformopen.sev = "2" OR onformopen.sev = "3") then
Enotify.value=""
End If
End Sub
I still get an error on this Y
-
Aug 10th, 2000, 01:46 PM
#2
Hyperactive Member
There are a couple things that I see. First, you would not use LCase for a numeric. If you need to check for numbers, use the isnumeric function like:
Code:
If isnumeric(myvalue)=true then
msgbox "it is a number"
Else
msgbox "not a number"
end if
Secondly, I am assuming that you are using TextBoxes. To
get the text inside the textbox box, you don't use
Instead you can use either one of the following
Code:
text1.text=mytext
'or
'The reason why this works is that .text is its default
'property.
text1=mytext
Hope this helps.
-
Aug 10th, 2000, 01:46 PM
#3
transcendental analytic
Lcase is used with strings, not boolean variables, but i don't know what you mean with Y
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 10th, 2000, 01:56 PM
#4
Thread Starter
Junior Member
thanks for your help, but I don't want to use a message box. It so whent he user comes in and checks either 1,2,3 then in the email field in will pick up DEV. If the user comes back into the form and the severity is already 1,2,3 then email will be = ""
-
Aug 10th, 2000, 02:52 PM
#5
transcendental analytic
I guess you could just remove Lcase but leave the ()
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|