Results 1 to 5 of 5

Thread: doesn't work Y??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    28

    Question

    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

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    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

    Code:
    text1.value=mytext
    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.


  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    28
    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 = ""

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
  •  



Click Here to Expand Forum to Full Width