Results 1 to 2 of 2

Thread: Scripting Error

  1. #1

    Question Scripting Error

    Goodday.
    I am a Newbie to Programming.
    Please help me out to see what is wrong with this simple
    script

    Sub RUN1_OnUpdate( )
    If RUN1.value=2
    Then DISPLAY1.value=2
    Else DISPLAY1.value=1
    End If
    End Sub

    AnD i recieve this
    Scripting Error
    Microsoft VBscript compliation error.
    [line:3] Expected 'Then' If RUN1.value=2
    Will to Learn
    javascript:myimagepopup(300,400,\'\')

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    MSDN is your friend:
    http://msdn.microsoft.com/library/en...ml/vastmIf.asp

    It should be:
    Code:
    If RUN1.value=2 Then
      DISPLAY1.value=2
    Else
      DISPLAY1.value=1
    End If
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •