Update: Sorry this should probably be in Command Builder Reference thread, mods please move if possible
I have VC command on VC2v1.9.2.1
When i test it it works via the LCB and testing payloads with save/execute.
I have a command to use a payload dictation of spelling type. However when the payload gets input, it has trailing spaces which throws my commands off, so
I'm using a results.setlasteresult to record the payload
Then results.replace to strip the spaces via args of 1=(literal space key press), arg2 = default no entry
But I can't get it to save as expected.
Everytime I hit the Save icon and the command doesnt work and I notice in the LCB that the space is no longer in arg1 anymore?
However the the xml shows a space <param> </param>
Anyone encounter this? Even if though with the test payload, save/execute works is a better alternative for spaces necessary?
I found the log entries below (also of note interesting my log is working, but the Enable Log is unchecked)
4/17/2014 11:08:32 PM 803 doCommand:SendKeyDictate
4/17/2014 11:08:32 PM 803 action repeat set to: 1
4/17/2014 11:08:32 PM 803 Action: Results.SetLastResult - n c i s
4/17/2014 11:08:32 PM 803 action repeat set to: 1
4/17/2014 11:08:32 PM 803 Action: Results.Replace -
4/17/2014 11:08:32 PM 803 unexpected error in action: Results.Replace
System.ArgumentException: String cannot be of zero length.
Parameter name: oldValue
at System.String.ReplaceInternal(String oldValue, String newValue)
at System.String.Replace(String oldValue, String newValue)
at VoxCommando.ResultsVars.actionReplace(String[] allParams)
at eval_e.eval_ᜂ(macroElement A_0, List`1 A_1)
at eval_e.eval_ᜁ(macroElement A_0, List`1 A_1)