Reflection for UNIX and OpenVMS 2014
Reflection for UNIX and OpenVMS 2011
Reflection Standard Suite 2011
Reflection for HP, UNIX and OpenVMS version 14.0 SP1 or higher
Beginning with Reflection version 14.0 Service Pack 1 (SP1), Reflection products can execute Reflection Basic (RB) host-initiated commands using Microsoft Visual Basic for Applications (VBA) with minimal modification to the command scripts.
Known Issues with Host-Initiated Reflection Basic Commands
Executing host-initiated Reflection Basic commands through VBA can resolve two known issues that occur after previous execution of a Reflection Basic script (.RBS file):
- Host-initiated Reflection Basic commands fail to launch another application using the CreateObject method.
- Or, do not return from the GetSaveAsFileName method.
Using VBA to Execute RB CommandsâScript Modifications
There are two ways that Reflection can be instructed to execute Reflection Basic commands using VBAâby adding a special comment at the beginning of the Reflection Basic command, or by using a new escape sequence.
Adding a Special Comment to the Reflection Basic Command
Add the following as a comment to the beginning of the host-initiated commands: RunAsVBA
HP Emulation Example
VT Emulation Example
Using a New Escape Sequence
The syntax for using a new escape sequence varies depending on whether you are using HP or VT emulation.
HP Emulation Syntax
VT Emulation Syntax
Note: All other aspects of command execution are the same as previously.