I tried to duplicate this with a WSH hosted script as the host
for the control but didn't get any error after the reset.
set sc =
createobject("msscriptcontrol.scriptcontrol")
sc.language =
"vbscript"
sc.addcode "sub hello():echo ""hello"":end sub"
sc.addobject
"ws",wscript,true
sc.state =
1
sc.codeobject.hello
sc.reset
sc.addcode "sub hello():echo
ws.scriptfullname :end sub"
sc.addobject "ws",wscript,true
sc.state =
1
sc.codeobject.hello
Here's a link from an old post about problems
with the language property after a reset when the control is hosted as a control
on a form rather than as an automation server.
How do you host the control? If as a control on a form,
try hosting it via a global variable initialized in the form load event
instead. It's a shot in the dark, but the KB article establishes that is
behaves differently depending on how it is hosted.
A full MSDN search on "script control" gave only 36 hits, none
matching your problem.
HTH
--
Michael Harris