VS 2010.execute is not declared.it may be inaccessible due to its protection level-VBForums
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
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,257

    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"?

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  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
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,257

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

    VB.NET is very different to VBScript.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.