Editing a VB script from within Revolution

Ken Ray kray at sonsothunder.com
Wed Mar 22 14:27:11 EST 2006


On 3/22/06 1:10 PM, "Thomas McGrath III" <3mcgrath at adelphia.net> wrote:

> Ken,
> 
> If I understand this the  "VBS" will run if  "VB Script" is in
> pSriptType because there is no break after the case "VB Script"?
> I just never wrote a switch that way and well, this is the first time
> I've seen that.

Yes you're right. If there's no "break", the case will fall through to the
next case. I use this to provide different options to the end user.

> What is the difference between straight to console and not? Why is
> that important?

Excellent question, and unfortunately one I can't remember! :-)

I remember putting it into the code for others that may want to use the
option, but I never have. And after looking on Microsoft's site, it looks
like it may be no longer an option. So just ignore it for now.
 
> Lastly, I notice that Python is not among the parameters. Is it not a
> choice or is it so different as to not work in this case?

To be honest, I know so little about Python that I didn't know if you can
execute Python code in a similar way as VB Script. Do you know if it can?
I'd love to extend stsDoScript, but don't know what needs to be done.
 
> P.S. I just tried a vb script stored in a field and it worked and is
> awesome.
> 
> Thank you so much for this.

My pleasure!

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com





More information about the Use-livecode mailing list