Click to See Complete Forum and Search --> : newb query!


siawos
August 21st, 2003, 04:52 AM
hi

how wud i return values to my running jscript file in windows from my component(VC++ 6.0) which is attachted to it



also how wud i shut down a running java script file or wscript.exe from my application when i encounter an error to stop the script

this is how i m connecting and now i need to stop the script from my component ...............here "MyFunctions" is an interface....

1: var PB=WScript.CreateObject("MYComponent.MyFunctions");
2: PB.Add("2","3");//2+3
3: PB.Subtract("3","200");//3-200
4: PB.Add("2","3");



what should i do to stop the script from running further after "line 3 "
that is i dont want a negetive result, after verifying this as true i want the script to stop further execution of statements...



i hope im able to clarify myself here :rolleyes:
thnx