Current.view

From AGI Wiki
Revision as of 19:22, 29 March 2019 by Andrew Korson (talk | contribs) (Created page with "The '''current.view''' command stores the number of the view currently assigned to an object in a variable. == Syntax == current.view(obj oA, variable|va...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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:

<syntaxhighlight lang="agi"> current.view(o0, v52); [ v52 now equals the view number assigned to ego </syntaxhighlight>

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