Skip to content

HeaderBlock.CreateProgram Method

Definition

Creates a new HeaderBlock for a BASIC program block.

public static HeaderBlock CreateProgram(string filename, ushort length, ushort? autostartLineNumber = null, ushort? relativeStartOfVariableArea = null);

View source

Parameters

Name Type Description
filename String The filename for the block.
length UInt16 The length of the data block in bytes.
autostartLineNumber UInt16? The autostart line number, or null for no autostart.
relativeStartOfVariableArea UInt16? The relative start of the variable area, or null to default to length.

Returns

HeaderBlock

A new HeaderBlock for a BASIC program.