Difference between revisions of "Discard.view"

From AGI Wiki
Jump to navigationJump to search
(Created page with "The '''discard.view''' command removes a view resource from memory. There is an indirect version of this command called '''discard.view....")
 
Line 13: Line 13:
 
=== For discard.view.v ===
 
=== For discard.view.v ===
  
* viewNumber</code>: a [[Variable|variable]], v0-v255, whose value specifies which view resource to remove from memory  
+
* <code>viewNumber</code>: a [[Variable|variable]], v0-v255, whose value specifies which view resource to remove from memory
  
 
== <code>Possible errors ==
 
== <code>Possible errors ==

Revision as of 21:04, 2 August 2013

The discard.view command removes a view resource from memory. There is an indirect version of this command called discard.view.v.

discard.view(viewNumber);

View viewNumber is discarded from memory.

Parameters

For discard.view

  • viewNumber: a number, 0-255, specifying which view resource to remove from memory

For discard.view.v

  • viewNumber: a variable, v0-v255, whose value specifies which view resource to remove from memory

Possible errors

Examples

The following example uses discard.view to remove view 203 from memory:

load.view(203); discard.view(203);

The next example uses discard.view.v to accomplish the same task:

load.view(203); v100 = 203; discard.view.v(v100);


See also

Sources

Some of the text in the article is taken from the AGI Studio help file.