Results 1 to 3 of 3

Thread: What is wrong? VBScript..

  1. #1
    anoop007
    Guest

    What is wrong? VBScript..

    Code:
    <script language="Vbscript">
    m = Val(Right("4-03-221-331", 3))
    </script>
    This code gives me a "Type Mismatch Error".. any ideas?

  2. #2
    Lively Member
    Join Date
    Aug 1999
    Location
    Blackpool, England
    Posts
    87
    Yep,
    Val is not supported in VBScript. Try cint(Right("4-03-221-331", 3))

    Steve Flitcroft MCP

  3. #3
    anoop007
    Guest
    thanks

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