Difference between revisions of "Object Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(:{{warning|1='''Object command is deprecated - use in new files is unsupported'''}})
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|geogebra}}
{{command|geogebra}}
+
;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|1=The '''Object''' command is the opposite of the [[Name Command|Name]] command.}}
 
:{{Note|1=The '''Object''' command is the opposite of the [[Name Command|Name]] command.}}
:{{Example|1=If points ''A1'', ''A2'', ... , ''A20'' exist and also a slider ''n = 2'', then <code>Object["A" + n]</code> creates a copy of point ''A2''.}}
+
:{{Example|1=If points ''A1'', ''A2'', ... , ''A20'' exist and also a slider ''n = 2'', then <code>Object("A" + n)</code> creates a copy of point ''A2''.}}
:{{Note|1=You must make sure that the objects you refer to are '''earlier''' in the [[Construction_Protocol]] than this command}}
+
:{{Note|1=You must make sure that the objects you refer to are '''earlier''' in the [[File:Menu view construction protocol.svg|link=|16px]] [[Construction_Protocol]] than this command}}
 
:{{warning|1=Object command cannot be used in [[Custom Tools]]}}
 
:{{warning|1=Object command cannot be used in [[Custom Tools]]}}
 +
:{{warning|1='''Object command is deprecated - use in new files is unsupported'''}}

Latest revision as of 12:07, 14 February 2024


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 also a slider n = 2, then Object("A" + n) creates a copy of point A2.
Note: You must make sure that the objects you refer to are earlier in the Menu view construction protocol.svg Construction_Protocol than this command
Warning Warning: Object command cannot be used in Custom Tools
Warning Warning: Object command is deprecated - use in new files is unsupported
© 2024 International GeoGebra Institute