Click or drag to resize

BasicNoUIObjRunThis Method

Runs macro code.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
public bool RunThis(
	string code
)

Parameters

code  String
Execute this code.

Return Value

Boolean
True if successful.

Implements

IBasicNoUIRunThis(String)
Remarks
RunThis executes a single line of code as if it were one line inside a Sub Main/End Sub block. To run more than one line of code you must explicitly include the Sub Main/End Sub block in the code.

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

Example
Run one line of script code:
basicIdeCtl1.RunThis("MsgBox \"Hello.\"");
See Also