1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 382a1df74SAndrew Rist<!--*********************************************************** 4cdf0e10cSrcweir * 582a1df74SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 682a1df74SAndrew Rist * or more contributor license agreements. See the NOTICE file 782a1df74SAndrew Rist * distributed with this work for additional information 882a1df74SAndrew Rist * regarding copyright ownership. The ASF licenses this file 982a1df74SAndrew Rist * to you under the Apache License, Version 2.0 (the 1082a1df74SAndrew Rist * "License"); you may not use this file except in compliance 1182a1df74SAndrew Rist * with the License. You may obtain a copy of the License at 12cdf0e10cSrcweir * 1382a1df74SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14cdf0e10cSrcweir * 1582a1df74SAndrew Rist * Unless required by applicable law or agreed to in writing, 1682a1df74SAndrew Rist * software distributed under the License is distributed on an 1782a1df74SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1882a1df74SAndrew Rist * KIND, either express or implied. See the License for the 1982a1df74SAndrew Rist * specific language governing permissions and limitations 2082a1df74SAndrew Rist * under the License. 21cdf0e10cSrcweir * 2282a1df74SAndrew Rist ***********************************************************--> 2382a1df74SAndrew Rist 24cdf0e10cSrcweir<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26cdf0e10cSrcweir<topic id="textsbasicshared03131900xml" indexer="include" status="PUBLISH"> 27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">GlobalScope [Runtime]</title> 28cdf0e10cSrcweir<filename>/text/sbasic/shared/03131900.xhp</filename> 29cdf0e10cSrcweir</topic> 30cdf0e10cSrcweir</meta> 31cdf0e10cSrcweir<body> 32cdf0e10cSrcweir<section id="globalscope"> 3372c4b3b3Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3150682"> 3472c4b3b3Smseidel<bookmark_value>GlobalScope function</bookmark_value> 35cdf0e10cSrcweir<bookmark_value>library systems</bookmark_value> 36cdf0e10cSrcweir<bookmark_value>LibraryContainer</bookmark_value> 37cdf0e10cSrcweir<bookmark_value>BasicLibraries (LibraryContainer)</bookmark_value> 38cdf0e10cSrcweir<bookmark_value>DialogLibraries (LibraryContainer)</bookmark_value> 39cdf0e10cSrcweir</bookmark> 40*351295b1Smseidel<paragraph role="heading" id="hd_id3150682" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03131900.xhp" name="GlobalScope [Runtime]">GlobalScope [Runtime]</link></paragraph> 41*351295b1Smseidel<paragraph role="paragraph" id="par_id3153345" xml-lang="en-US" l10n="U">Basic source code and dialogs are organized in a library system.</paragraph> 42cdf0e10cSrcweir</section> 43cdf0e10cSrcweir<list type="unordered"> 44cdf0e10cSrcweir<listitem> 45*351295b1Smseidel<paragraph role="listitem" id="par_id3145315" xml-lang="en-US" l10n="U">The LibraryContainer contains libraries</paragraph> 46cdf0e10cSrcweir</listitem> 47cdf0e10cSrcweir<listitem> 48*351295b1Smseidel<paragraph role="listitem" id="par_id3149514" xml-lang="en-US" l10n="U">Libraries can contain modules and dialogs</paragraph> 49cdf0e10cSrcweir</listitem> 50cdf0e10cSrcweir</list> 51*351295b1Smseidel<paragraph role="heading" id="hd_id3143271" xml-lang="en-US" level="2" l10n="U">In Basic:</paragraph> 52cdf0e10cSrcweir<list type="unordered"> 53cdf0e10cSrcweir<listitem> 54*351295b1Smseidel<paragraph role="listitem" id="par_id3153061" xml-lang="en-US" l10n="U">The LibraryContainer is called <emph>BasicLibraries</emph>.</paragraph> 55cdf0e10cSrcweir</listitem> 56cdf0e10cSrcweir</list> 57*351295b1Smseidel<paragraph role="heading" id="hd_id3154346" xml-lang="en-US" level="2" l10n="U">In dialogs:</paragraph> 58cdf0e10cSrcweir<list type="unordered"> 59cdf0e10cSrcweir<listitem> 60*351295b1Smseidel<paragraph role="listitem" id="par_id3148663" xml-lang="en-US" l10n="U">The LibraryContainer is called <emph>DialogLibraries</emph>.</paragraph> 61cdf0e10cSrcweir</listitem> 62cdf0e10cSrcweir</list> 63*351295b1Smseidel<paragraph role="paragraph" id="par_id3150543" xml-lang="en-US" l10n="U">Both LibraryContainers exist in an application level and within every document. In the document Basic, the document's LibraryContainers are called automatically. If you want to call the global LibraryContainers from within a document, you must use the keyword <emph>GlobalScope</emph>.</paragraph> 64*351295b1Smseidel<paragraph role="heading" id="hd_id3148920" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> 65*351295b1Smseidel<paragraph role="paragraph" id="par_id3149203" xml-lang="en-US" l10n="U">GlobalScope</paragraph> 66*351295b1Smseidel<paragraph role="heading" id="hd_id3154685" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> 67*351295b1Smseidel<paragraph role="paragraph" id="par_id3154124" xml-lang="en-US" l10n="U">Example in the document Basic</paragraph> 68*351295b1Smseidel<paragraph role="paragraph" id="par_id3158408" xml-lang="en-US" l10n="U">' calling Dialog1 in the document library Standard</paragraph> 69*351295b1Smseidel<paragraph role="paragraph" id="par_id3125865" xml-lang="en-US" l10n="U">oDlgDesc = DialogLibraries.Standard.Dialog1</paragraph> 70*351295b1Smseidel<paragraph role="paragraph" id="par_id3154910" xml-lang="en-US" l10n="U">' calling Dialog2 in the application library Library1</paragraph> 71*351295b1Smseidel<paragraph role="paragraph" id="par_id3156424" xml-lang="en-US" l10n="U">oDlgDesc = GlobalScope.DialogLibraries.Library1.Dialog2</paragraph> 72cdf0e10cSrcweir</body> 73cdf0e10cSrcweir</helpdocument> 74