Script Control Issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chuckzter
    New Member
    • Oct 2007
    • 56

    Script Control Issues

    Can anybody please help me or enlighten me why thes eline of codes isn't working?

    a = "Dim dllname As HRMSSkills.Skil lsManager"
    Call ScriptControl1. ExecuteStatemen t(a)

    It says, "Expected end of statement"

    Thanks in advance.
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by chuckzter
    Can anybody please help me or enlighten me why thes eline of codes isn't working?

    a = "Dim dllname As HRMSSkills.Skil lsManager"
    Call ScriptControl1. ExecuteStatemen t(a)

    It says, "Expected end of statement"

    Thanks in advance.
    Just as you cannot have a break point on a DIM statement you also cannot use them in a script control like that.

    You can only execute actual lines of code.

    Comment

    • chuckzter
      New Member
      • Oct 2007
      • 56

      #3
      Uhm, ok. Do you have any suggestion on how can i DIM during run time? I really need help. Thanks in advance.

      Comment

      • jeffstl
        Recognized Expert Contributor
        • Feb 2008
        • 432

        #4
        Originally posted by chuckzter
        Uhm, ok. Do you have any suggestion on how can i DIM during run time? I really need help. Thanks in advance.
        You dim during run time with just a line like this

        Dim dllname As HRMSSkills.Skil lsManager

        Under the Option explicit at the top of your code.

        Comment

        Working...