Announcement

Collapse
No announcement yet.

Trying to use Dim statement

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trying to use Dim statement

    I am trying to make a Dim statement spcific in a VBS script by using:

    Code:
    Dim HouseCode As String
    It appears to work in other scripts but I get an error. What am I missing.
    Running script, script run or compile error in file: Days_Till_Reminder.txt1025:Expected end of statement in line 14 More info: Expected end of statement

    #2
    MeSteve,
    That dim statement looks OK. If you could post the first part of your vb script maybe we can spot something. Remember to count the blank lines too.

    Edit. Thought I saw vb and not vbs
    Last edited by Rupp; July 18, 2006, 02:59 PM.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      VB Script does not allow typing. Everything is a variant.

      Dim HouseCode

      I do not know the rules if you are trying to do something in .NET

      Comment


        #4
        Dang! Good catch Michael. I thought I saw .vb instead of VBS. Reading Steve's other post on vb.net put the mind in the wrong mode.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          Makes sense, thanks for the knowledge tidbit. Changing the file to a .vb, I could then eliminate the variants? What are the other changes I would have to make?

          Comment

          Working...
          X