Click or drag to resize

IBasicNoUIRunFile Method

Runs a macro by name.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
bool RunFile(
	string fileName
)

Parameters

fileName  String
Run this file. File names that contain spaces must be enclosed in literal quotes ("). The text following the first space (or end quote) is passed to the macro in the WinWrap Basic Command variable. If this is a null string, use the value of the FileName property as the file name.

Return Value

Boolean
True if successful.
Remarks

The currently executing macro/module is suspended until this macro completes. Syntax or run-time errors trigger the ErrorAlert event.

Macro/Module Paths

Macro/module paths are typically file paths. However, it is sometimes useful to work with macros/modules that are not stored as files. A macro/module path is of the form:

C#
[*[*]]path[*]
Part Description
'*' Paths that being with '*' are non-file system macro/modules. The application provides the methods for reading and writing these files. Paths that begin and end with '*' are hidden from the IDE. User's can't step into or otherwise inspect the contents.
'**' Paths that begin with '**' are non-file system modules. The application provides the methods for reading and writing these files. Running an event-driven module loads it using LoadModule.
path This is the identity of the macro/module.

See Also