Turn on a pointer in optoscript

Having a large sample size, using pointers is very useful. My only problem is turning on a pointer (pointing to an output) in optoscript. Any ideas?

In the optoscript below I keep a string table called “OutputLookup”
This has the name of the output point in it as a string that matches the tag name of the output channel.
Then we use GetPointerFromName to set the pointer to that output channel.
Next we use the Turn On command, but notice that an * is appended to the front of the pointer variable.
Hope it helps.

strOutput=OutputLookup[nValveIdx];
GetPointerFromName(strOutput,ptrToOutput);
TurnOn(*ptrToOutput);