Results 1 to 5 of 5

Thread: VS 2010.execute is not declared.it may be inaccessible due to its protection level

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    19

    VS 2010.execute is not declared.it may be inaccessible due to its protection level

    Dim msg As String
    msg = "Hello"
    Execute(msg)

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: VS 2010.execute is not declared.it may be inaccessible due to its protection leve

    What exactly do you expect to happen there? Execute doesn't exist and, even if it did, exactly how would you execute "Hello"?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    19

    Re: VS 2010.execute is not declared.it may be inaccessible due to its protection leve

    so theres no equivalent execute command like it exists in vbs?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: VS 2010.execute is not declared.it may be inaccessible due to its protection leve

    VB.NET is very different to VBScript.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    19

    Re: VS 2010.execute is not declared.it may be inaccessible due to its protection leve

    so is there a way i can execute an expression that is held within a string variable?

    so the variable contains "msgbox("hello")" and execute runs it
    is there a way?

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