Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

@Parameters

Declares a Program’s parameters: one mode:&Variable entry per line. The type comes from the matching declaration in @Variables/global, it isn’t repeated here.

ModeDescription
inInput parameter: the caller passes a value, this program can’t return it modified.
inoutInput/output: the caller passes a value, and this program can modify it back.
outOutput: this program sets it, the caller only reads it back.
@Variables {
    global {
        MyDate  date
        MyTime  char(8)
    }
}
@Parameters {
    inout:&MyDate,
    inout:&MyTime
}

Doesn’t apply to Screen (doesn’t receive parameters) or tables.