script control in vb.net / vb6?

dynamic_sysop

Senior Contributor
Joined
Oct 1, 2002
Messages
1,039
Location
Ashby, Leicestershire.
hi does anyone know how to use the script control in vb6 or .net? or maybe have a code example?
i can add a script control to a form in vb6 and then add text to a textbox saying " msgbox "test" " and hit a button and it makes a messagebox appear, however if i try to add proper code like Dim Socket as such and such , it just comes up with a line error, i'm not sure if there's a particular format for these script controls to recognise/decypher code before it will make a form respond.
any help would be appreciated on this ty.
 
VBScript is not strongly typed, all variables are variants. Therefore you cannot Dim x As Type.

I can think of no reason why you would use this control from .NET.
 
the reason i want script option is, i build irc clients and want to give people the option to add their own scripts in to them ( mirc does this , ie: you can make a scripts which adds as many sockets as you want it to and then connects them sockets to the places you want, you can also tell mirc to respond to things, like if someone on the irc channel says something which contains profanity, the script triggers off a kick/ban ) basically i want to put out an irc client that people can build upon as they can with mirc.
 
I wrote an IRC client in .NET which supported full scripting in either VB.NET or C#.

Look in to the System.CodeDom and System.CodeDom.Compiler namespaces. If you are serious about developing such a capability the .NET framework offers everything you need to compile on the fly.
 
any chance of a copy of the finished project to see how it works? or maybe a snippet of the code for the script engine?
i've never seen the System.CodeDom yet so didnt know about any of this.
 
Hmm, well, I've tried adding in a vsa into my proggie, but Microsoft (in their "wisdom") has no documentation (little = nothing), and no samples on how to use it. Even their newsgroups are BARE.

I tried the scripting engine @ http://peisker.de/index.html?http://peisker.de/dotnet/scripting.htm

But, its worthless, no way to add in codeitems and execute them, lol. The author refuses to respond to any emails, which renders his scripting engine as useless.

So, Im off on my search again for a scripting engine using VSA that will run mutliple scripts, and events, etc.. but sadly, there are currently none.
 
Back
Top