Difference between revisions of "Object Command"
From GeoGebra Manual
(added v.4 - note/example formatting) |
(added v.4 - note/example formatting) |
||
Line 3: | Line 3: | ||
; Object[Name of Object as Text]: Returns the object for a given name. The result is always a dependent object. | ; Object[Name of Object as Text]: Returns the object for a given name. The result is always a dependent object. | ||
: {{Note| The ''Object'' command is the opposite of the [[Name Command|Name]] command.}} | : {{Note| The ''Object'' command is the opposite of the [[Name Command|Name]] command.}} | ||
− | : {{Example| 1=If points ''A1'', ''A2'', ... , ''A20'' exist and slider ''n = 2'', then < | + | : {{Example| 1=If points ''A1'', ''A2'', ... , ''A20'' exist and slider ''n = 2'', then <code>Object["A" + n]</code> gives you a copy of point ''A2''.}} |
Revision as of 11:26, 24 February 2011
- Object[Name of Object as Text]
- Returns the object for a given name. The result is always a dependent object.
- Note: The Object command is the opposite of the Name command.
- Example: If points A1, A2, ... , A20 exist and slider n = 2, then
Object["A" + n]
gives you a copy of point A2.