| Open Form
| Open the form associated with this script.
|
| Open Table
| Open the table associated with this script.
|
| Run
| Run the script
|
| Run under Debugger
| Run a script under control of the debugger. Available if the Debugger is
installed.
|
| Pause
| Pause execution of a script. Available if the Debugger is installed.
|
| Stop
| Stop execution of a script. Available if the Debugger is installed.
|
| Step Into
| Step over a routine. Available if the Debugger is installed.
|
| Step Out
| Step into a routine. Available if the Debugger is installed.
|
| Step Over
| Step out of a routine. Available if the Debugger is installed.
|
| Language
| Specify a scripting language. Available choices will include all ActiveX
scripting engines installed on the computer system.
|
The Create Script dialog box will allow us to name our new script, provide an optional
description and choose a language (default choices being C#, Jscript, Jscript.NET,
VB.NET and VBscript). If a .NET language is selected, we can check the Add references for standard .NET modules box.
A message box appears with our desired message. Press OK to close the message box.
If we had used a .NET language like VB.NET, whenever we run the script it will
first be compiled, which may add a delay before the script launches in the
case of large scripts. We can avoid this delay by using the Script - Compile to DLL command to compile the script into a DLL.
Any errors detected during compilation of a .NET script will be displayed in
the Errors pane.
Note: If we have purchased the Debugger option for Professional Edition or if we
are running Enterprise Edition (which includes the Debugger) we can run scripts
using the Debugger. See the Debugger topic for more information.
Saying Hello in C#
The C# version of "Hello, World" is:
Saying Hello in Jscript
The Jscript version of "Hello, World" is:
Saying Hello in Jscript.NET
The Jscript.NET version of "Hello, World" is:
Saying Hello in VB.NET
The VB.NET version of "Hello, World" is:
Saying Hello in VBscript.NET
The VBscript version of "Hello, World" is:
Note that the above scripts use the built-in Application object.
Saying Hello in PythonScript and PerlScript
Many languages are available as ActiveX scripting languages for Windows. For
example, installing the Active State Python or Perl distributions (free as of
this writing from http://www.activestate.com) will add Python and Perl scripting capabilities to Manifold. As with
Jscript, scripts in these languages use the built-in Application object.
PythonScript:
def Main():
Application.MessageBox("Hello, World!")
PerlScript:
sub Main {
$Application->MessageBox("Hello, World!");
}
Some users prefer scripting in Python or Perl to scripting in VBScript or
Jscript; however, Manifold technical support is able to support only VBScript,
Jscript and the .NET languages.
Adding Scripts as Toolbar Buttons or Menu Commands
Scripts (which may call external COM objects) may be added as custom toolbar
buttons or menu items. See the Add-Ins topic for information on adding new toolbar buttons or menu commands.
Script Window Keyboard Shortcuts
Script windows support well-known Windows keyboard shortcuts, including those
often used in Windows programming editors:
| CTRL-A
| Select All
|
| CTRL-I
| Invert Selection.
|
| CTRL-X
| Cut selected text and copy to the Clipboard.
|
| CTRL-C
| Copy selected text to the Clipboard.
|
| CTRL-V
| Paste text contents of the Clipboard.
|
| CTRL-L
| Delete current line.
|
| CTRL-J
| Comment out selected text.
|
| SHIFT-CTRL-J
| Uncomment selected text.
|
| CTRL-M
| Convert selected text to lower case.
|
| SHIFT-CTRL-M
| Convert selected text to upper case.
|
| CTRL-Insert
| Equivalent to CTRL-C. An old Windows shortcut kept for compatibility.
|
| SHIFT-Insert
| Equivalent to CTRL-V. An old Windows shortcut kept for compatibility.
|
| Insert
| Toggles insert / overwrite mode.
|
| CTRL-Z
| Multi-level Undo.
|
| CTRL-Y
| Multi-level Redo.
|
| Shift-Delete
| Same as CTRL-X or Cut.
|
| ALT-Backspace
| Same as CTRL-Z or multi-level Undo.
|