Error message logged when using multiple <_anything> tags in one command

The following command works but gives an error message. I'd rather not fill up my error log, so I'm wondering if anyone knows how to fix this.

Create Variable <_anything> As <_anything> = "Dim " $1 " As " $2;

Gives the error:

Traceback (most recent call last):
File "C:\PROGRA~1\NatLink\macrosystem\core\natlinkutils.py", line 514, in resultsCallback
self.callIfExists( 'gotResults_'+x[1], (x[0], fullResults) )
File "C:\PROGRA~1\NatLink\macrosystem\core\natlinkutils.py", line 213, in callIfExists
else: apply(func, argList)
File "C:\PROGRA~1\NatLink\macrosystem\devenv_vcl.py", line 163, in gotResults_9
word = fullResults[1 + self.firstWord][0]
IndexError: list index out of range

This shows up in the Messages from Python Macros dialog.

DNS 9.1 SP1
NatPython 1.5

Derek

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I assume your command should

I assume your command should be:

Create <_anything> Variable As <_anything>  = "Dim " $1 " As " $2;

Just do not abuse the _anything option. What you are trying to do is nearly voicecoding, have a look there.

You are asking for difficulties if you try to make commands like this. <_anything> should only be used as last variable on a command line.

My 5 cents,

Quintijn

You are right about the

You are right about the command I am trying to use. I've done a few of these and they seem to work very well except for the warning messages.

What do you mean by voicecoding? Do you mean using Python and NATLink?

Derek

See the voicecode

See the voicecode website.

VoiceCode is also based on natlink. But in a more intricate way. It is catching normal dictation, and converting it to programming code. No support for Visual Basic though (yet).

Greetings, Quintijn

I confirm that this is a bug

I confirm that this is a bug in Vocola. It's too late to get it fixed in Vocola 2.6, but hopefully we can get it fixed in the next version.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.




view recent posts