Table of Contents

Class BasicProgramText

Namespace
RDCore.SDK.Workspace
Assembly
RDCore.SDK.dll

The text of a program of the platform's BASIC: a .rdc file, and the module it is as far as the language is concerned.

public static class BasicProgramText
Inheritance
BasicProgramText
Inherited Members

Remarks

A program of the BASIC is lines - 100 X = 1, 110 PRINT X - with no procedure around them and no header: the lines are the program, and a line number is a line label, which is real MS-VBAL syntax (MS-VBAL §5.4.1.1). What the language makes of the text is a module: the lines are the body of its one procedure, EntryPointName, which is what running the program runs. This is that module, and where its lines are in the text.

Fields

EntryPointName

The name of the procedure the lines of a program make up.

public const string EntryPointName = "Main"

Field Value

string

Extension

The extension of the files a program of the BASIC is saved in.

public const string Extension = ".rdc"

Field Value

string

Properties

The footer of the module a program is: the end of its procedure.

public static string Footer { get; }

Property Value

string

Header

The header of the module a program is: the procedure its lines are the body of.

public static string Header { get; }

Property Value

string

HeaderLines

How many lines the module has before the first line of the text, which is the header's: a line of the module is this many lines further than the line of the text it is.

public static int HeaderLines { get; }

Property Value

int

Methods

IsProgram(string)

Whether a document is a program of the BASIC, by the file it is.

public static bool IsProgram(string path)

Parameters

path string

The path or the name of the file.

Returns

bool

ToModuleSource(string)

The module a program is.

public static string ToModuleSource(string text)

Parameters

text string

The text of the program: its lines.

Returns

string

ToTextRange(Range)

Where in the text of a program a range of its module is.

public static Range ToTextRange(Range range)

Parameters

range Range

A range of the module.

Returns

Range

The range of the text; a range that is the header's or the footer's is the start of the text.