forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobalNames.xml
More file actions
50 lines (50 loc) · 2.32 KB
/
Copy pathglobalNames.xml
File metadata and controls
50 lines (50 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<doc>
<legacy_id>1808</legacy_id>
<name>globalNames</name>
<type>function</type>
<syntax>
<example>the globalNames</example>
<example>globalNames()</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
<synonym>globals</synonym>
</synonyms>
<classification>
<category>Values & Properties</category>
</classification>
<references>
<command tag="global">global Command</command>
<function tag="localNames">localNames Function</function>
<function tag="variableNames">variableNames Function</function>
<command tag="delete variable">delete variable Command</command>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<summary><glossary tag="return">Returns</glossary> a list of <glossary tag="declare">declared</glossary> <glossary tag="global">global variables</glossary>.</summary>
<examples>
<example>the globalNames</example>
<example>if "myGlob" is not among the items of the globalNames then global myGlob</example>
</examples>
<description>
<p>Use the <b>globalNames</b> <control_st tag="function">function</control_st> to determine which <glossary tag="global">global variables</glossary> are available, or to make sure a <glossary tag="global">global variable</glossary> name has not already been used before <glossary tag="declare">declaring</glossary> it.</p><p/><p><b>Value:</b></p><p>The <b>globalNames</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a list of all <glossary tag="global">global variables</glossary>, separated by commas.</p><p/><p><b>Comments:</b></p><p>Global variables are created with the <b>global</b> command. They can be deleted with the <command tag="delete variable">delete variable</command> command. All <glossary tag="global">global variables</glossary> that have been <glossary tag="declare">declared</glossary> since the <glossary tag="application">application</glossary> was started up are included in the <b>globalNames</b> <control_st tag="function">function</control_st>, except any that have been explictly deleted.</p>
</description>
</doc>