Results 1 to 4 of 4

Thread: Re: VBscript component?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    Re: VBscript component?

    Quote Originally Posted by techgnome
    Add a reference to the Microsoft Scripting Library..... You may need to do a Google search on how to use it exactly. I've used in in our project here (in a rather unorthodox way, otherwise I'd show a sample on how to use it.

    But, basically you create an instance of the scripter, .AddModule (or it might be .Modules.Add - I forget the exact syntax), then add code to it. Once you have all the code added (which can include subs, functions, etc) you can execute the code and return the result. It is also possible to pass in parameters.

    -tg
    I`ll try it, many thanks!
    Can you please post a example?
    Last edited by zenteo; Jul 3rd, 2007 at 04:34 PM.

    If (date.day==monday) {
    date.day = friday;
    }

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    Question VBscript component?

    Is there any Vbscript components? And where can i get it?
    I want to use the com to run source instead of a file, like
    Code:
    Execute("Dim I:I=3:Wscript.Echo I")

    I you can help me, then thank you very much!

    If (date.day==monday) {
    date.day = friday;
    }

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VBscript component?

    Add a reference to the Microsoft Scripting Library..... You may need to do a Google search on how to use it exactly. I've used in in our project here (in a rather unorthodox way, otherwise I'd show a sample on how to use it.

    But, basically you create an instance of the scripter, .AddModule (or it might be .Modules.Add - I forget the exact syntax), then add code to it. Once you have all the code added (which can include subs, functions, etc) you can execute the code and return the result. It is also possible to pass in parameters.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    20

    Re: VBscript component?

    I finaly understood it, you told me wrong information >(
    Not Microsoft Scripting Library, but Microsoft Script Control!

    If (date.day==monday) {
    date.day = friday;
    }

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