Code: Select all
For Each objControl In frmHub.Controls
If objControl.Name = "HubScripts" And UCase(sService) = UCase(objControl.Tag) Then
If objControl.Procedures.Count <> 0 Then
objControl.Reset
sStatus = CStr(sService) + " has been stoped."
Else
sStatus = "Error: " + CStr(sService) + " has already been stoped."
End If
Exit For
End If
Nextok that is the code i have so far wich stops a script just lick clicking the stop button. Now this works all fine and good until you goto restart the script. This is where i try using the objControl.AddCode function and it seems to restart the script but the script nolong executes. Any one have any ideas?