Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute basic code from a text file?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi, i want to be able to execute code from a text file, i want basically scripts kinda, but i want them in basic code nad i want to be able to link the functions to my own internal functions, basically im looking for a 'basic' script interpeter written in basic.. uh, how would go about getting one ormaking one thx!
 
There is a script control located at:


This control can apparently allow VB6 to run VBScript and JavaScript scripts.

The filename of the control is msscript.ocx.
Instructions for this control are in MSDN at article ID Q184739 and Q184740.

I haven't used this control, so I can't offer any help there; I just happened across these articles one day, so I thought I'd pass them on to you. :)

Steve
[sig][/sig]
 
I recently finished an alpha .bas module, which is basically a BASIC script interpeter. It's very lightweight and not very extensive at the moment, but if you'd like a copy, just let me know, I'll be happy to send it your way. [sig]<p>Matt<br><a href=mailto:Grifter@untrendy.org>Grifter@untrendy.org</a><br><a href= - Untrendy Inc.</a><br> [/sig]
 
Why can't you just use OLE to link to whatever script you want to run. Create a file containing some VB script, call it Whatever.VBS, link it to OLE1, double click OLE1 and the script executes.

Hmmm, maybe I'm missing something. I'm not even clear why Microsoft released a scripting OCX. Seems a little useless.
[sig]<p> <br><a href=mailto: > </a><br><a href= plain black box</a><br>"For most users of personal computers, the single-user, single task restrictions are of no consequence. Personal computers work just fine with one console."<br>
<b><u>CP/M and the Personal Computer</u></b>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top