Classes

Method VCrt():setMode() Foundation

Sets or retrieves the size of a VCrt object.

Syntax
:setMode( [<nRowCount>], [<nColCount>] ) --> aOldMode
Parameters
<nRowCount>
If the height of a VCrt object is to be changed, <nRowCount> defines the number of screen rows the object should display.
<nColCount>
If the width of a VCrt object is to be changed, <nColCount> defines the number of screen columns the object should display.
Return

The method returns an array containing two numeric values. The first element is the present number of rows (height) and the second one the present number of columns (width) of the VCrt object.

Description

The method :setMode() determines or changes the size of a VCrt object. When the object is the current output device, this is the same as calling the SetMode() function.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.