SecondBASIC Documentation v3

Home / Command Reference / Write, WriteInt, WriteLong

Write, WriteInt, WriteLong

Description: Writes <Data> to the <DataPointer>. The data written is only temporary and will be erased when the unit is turned off.

Syntax:

Write <Data> [, <Data>]
WriteInt <Data> [, <Data>]
WriteLong <Data> [, <Data>]

Part Description
<Data> Required. The result of an expression/value/variable to be written. Optional expressions are allowed, separated by commas.

Example:

    a = 50
    b& = VarPtr&(a)
    DataPtr& = b&
    WriteInt 5
    DataPtr& = b&
    Print ReadInt()
    Print a