Current.view

From AGI Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The current.view command stores the number of the view currently assigned to an object in a variable.

Syntax

current.view(obj oA, var vB);

Remarks

vB is set to the view number for screen object oA.

Possible Errors

AGI does not check that object number oA is a valid object. If it is not, the returned value is meaningless.

Example

Code:
current.view(o0, v52);  [ v52 now equals the view number assigned to ego

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 52 (0x34 hex)

See Also

current.cel
current.loop
last.cel
set.view
set.view.v