Results 1 to 5 of 5

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

  1. #1
    Junior Member
    Join Date
    Mar 09
    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
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,745

    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
    Junior Member
    Join Date
    Mar 09
    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
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,745

    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
    Junior Member
    Join Date
    Mar 09
    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
  •