Skip to content

HeaderBlock.CreateProgram Method ​

Definition ​

Creates a new HeaderBlock for a BASIC program block.

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

View source

Parameters ​

NameTypeDescription
filenameStringThe filename for the block.
lengthUInt16The length of the data block in bytes.
autostartLineNumberUInt16?The autostart line number, or null for no autostart.
relativeStartOfVariableAreaUInt16?The relative start of the variable area, or null to default to length.

Returns ​

HeaderBlock

A new HeaderBlock for a BASIC program.