Here's a translation of one of your vb.net classes.
SpeakAndLogMultipleParms.cs:
public object Main(object[] parms)
{
// Simple Sample Using Multiple Parms
// Specify two parms, separated by a vertical bar character ("|")
// The 1st parm is the text spoken
// The 2nd parm is the text written to the HS log
string parmString;
string[] parmArray;
parmString = System.Convert.ToString(parms[0]);
parmArray = parmString.Split('|'); // split parameter string into parm array
hs.Speak(parmArray[0]); // speak 1st parm
hs.WriteLog("Info", "This is 2nd parm: " + parmArray[1]); // log 2nd parm
return 0;
}
// EDIT: sorry, but don't know why indentation doesn't properly show up after pasting to this forum :-)
SpeakAndLogMultipleParms.cs:
public object Main(object[] parms)
{
// Simple Sample Using Multiple Parms
// Specify two parms, separated by a vertical bar character ("|")
// The 1st parm is the text spoken
// The 2nd parm is the text written to the HS log
string parmString;
string[] parmArray;
parmString = System.Convert.ToString(parms[0]);
parmArray = parmString.Split('|'); // split parameter string into parm array
hs.Speak(parmArray[0]); // speak 1st parm
hs.WriteLog("Info", "This is 2nd parm: " + parmArray[1]); // log 2nd parm
return 0;
}
// EDIT: sorry, but don't know why indentation doesn't properly show up after pasting to this forum :-)
Comment