HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/libreoffice/help/en-US/sbasic.jar
PK
Mw�Xtext/sbasic/PK
Nw�Xtext/sbasic/shared/PK
Nw�XQ�,�bbtext/sbasic/shared/03020410.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Kill Statement [Runtime]</title><filename>/text/sbasic/shared/03020410.xhp</filename></topic></meta><body><section id="kill"><bookmark branch="index" id="bm_id3153360"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020410.xhp">Kill Statement [Runtime]</link></paragraph><paragraph role="paragraph">Deletes a file from a disk.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Kill</item> <item type="identifier">File</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>File:</emph> Any string expression that contains an unambiguous file specification. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err76"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleKill</item></paragraph><paragraph role="bascode">    <item type="identifier">Kill</item> <item type="string">"C:\datafile.dat"</item> <item type="comment">' File must be created in advance</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�Xc��
�
text/sbasic/shared/01050000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>$[officename] Basic IDE</title><filename>/text/sbasic/shared/01050000.xhp</filename></topic></meta><body><section id="IDE"><paragraph role="heading" level="1"><variable id="01050000"><link href="text/sbasic/shared/01050000.xhp">$[officename] Basic IDE</link></variable></paragraph><paragraph role="paragraph">This section describes the structure of the Basic IDE.</paragraph><bookmark branch="hid/.uno:BasicIDEAppear" id="bm_id1676992"/><paragraph role="paragraph"><ahelp hid="." visibility="hidden">Opens the Basic IDE where you can write and edit macros.</ahelp></paragraph></section><embed href="text/sbasic/shared/main0211.xhp#makro"/><embed href="text/sbasic/shared/01050100.xhp#beobachter"/><embed href="text/sbasic/shared/01050200.xhp#kommando"/><embed href="text/sbasic/shared/01050300.xhp#haltepunkte"/><embed href="text/sbasic/shared/keys.xhp#keys"/><paragraph role="heading" level="2">Commands From the Context menu of the Module Tabs</paragraph><paragraph role="heading" level="3">Insert</paragraph><bookmark branch="hid/.uno:NewModule" id="bm_id3412182"/><bookmark branch="hid/.uno:NewModule" id="bm_id3145646"/><paragraph role="heading" level="4">Module</paragraph><paragraph role="paragraph"><ahelp hid=".uno:NewModule">Inserts a new module into the current library.</ahelp></paragraph><bookmark branch="hid/.uno:NewDialog" id="bm_id9158311"/><bookmark branch="hid/.uno:NewDialog" id="bm_id3155418"/><paragraph role="heading" level="4">Dialog</paragraph><paragraph role="paragraph"><ahelp hid=".uno:NewDialog">Inserts a new dialog into the current library.</ahelp></paragraph><bookmark branch="hid/.uno:DeleteCurrent" id="bm_id9753230"/><bookmark branch="hid/.uno:DeleteCurrent" id="bm_id3146971"/><paragraph role="heading" level="3">Delete</paragraph><paragraph role="paragraph"><ahelp hid=".uno:DeleteCurrent">Deletes the selected module.</ahelp></paragraph><bookmark branch="hid/.uno:RenameCurrent" id="bm_id8105416"/><bookmark branch="hid/.uno:RenameCurrent" id="bm_id3150324"/><paragraph role="heading" level="3">Rename</paragraph><paragraph role="paragraph"><ahelp hid=".uno:RenameCurrent">Renames the current module in place.</ahelp></paragraph><bookmark branch="hid/.uno:HideCurPage" id="bm_id3462342"/><bookmark branch="hid/.uno:HideCurPage" id="bm_id3146317"/><paragraph role="heading" level="3">Hide</paragraph><paragraph role="paragraph"><ahelp hid=".uno:HideCurPage">Hides the current module.</ahelp></paragraph><paragraph role="heading" level="3">Modules</paragraph><paragraph role="paragraph">Opens the <link href="text/sbasic/shared/01/06130000.xhp"><emph>Macro Organizer</emph></link> dialog.</paragraph></body></helpdocument>
PK
Nw�X���mmtext/sbasic/shared/03104000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsMissing function [Runtime]</title><filename>/text/sbasic/shared/03104000.xhp</filename></topic></meta><body><section id="ismissing"><bookmark branch="index" id="bm_id3153527"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03104000.xhp">IsMissing function [Runtime]</link></paragraph><paragraph role="paragraph">Tests if a function is called with an optional parameter.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03104100.xhp">Optional</link></paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsMissing</item><item type="operator">(</item> <item type="identifier">ArgumentName</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>ArgumentName:</emph> the name of an optional argument.</paragraph><paragraph role="paragraph">If the IsMissing function is called by the ArgumentName, then True is returned.</paragraph><paragraph role="paragraph">See also <link href="text/sbasic/guide/sample_code.xhp">Examples</link>.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/></body></helpdocument>
PK
Nw�Xqh� aatext/sbasic/shared/03120300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Editing String Contents</title><filename>/text/sbasic/shared/03120300.xhp</filename></topic></meta><body><section id="manipu"><bookmark branch="index" id="bm_id7499008"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120300.xhp">Editing String Contents</link></paragraph><paragraph role="paragraph">The following functions edit, format, and align the contents of strings. Use the &amp; operator to concatenate strings.</paragraph></section><embed href="text/sbasic/shared/03120301.xhp#format"/><embed href="text/sbasic/shared/03120302.xhp#lcase"/><embed href="text/sbasic/shared/03120303.xhp#left"/><embed href="text/sbasic/shared/03120304.xhp#lset"/><embed href="text/sbasic/shared/03120305.xhp#ltrim"/><embed href="text/sbasic/shared/03120306.xhp#mid"/><embed href="text/sbasic/shared/03120307.xhp#right"/><embed href="text/sbasic/shared/03120308.xhp#rset"/><embed href="text/sbasic/shared/03120309.xhp#rtrim"/><embed href="text/sbasic/shared/03120311.xhp#trim"/><embed href="text/sbasic/shared/03120310.xhp#ucase"/><embed href="text/sbasic/shared/03120314.xhp#split"/><embed href="text/sbasic/shared/03120315.xhp#join"/><embed href="text/sbasic/shared/03120312.xhp#converttourl"/><embed href="text/sbasic/shared/03120313.xhp#convertfromurl"/></body></helpdocument>
PK
Nw�XN�^D��text/sbasic/shared/03030200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Converting Time Values</title><filename>/text/sbasic/shared/03030200.xhp</filename></topic></meta><body><section id="uhrzeiten"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030200.xhp">Converting Time Values</link></paragraph><paragraph role="paragraph">The following functions convert time values to calculable numbers.</paragraph></section><embed href="text/sbasic/shared/03030201.xhp#hour"/><embed href="text/sbasic/shared/03030202.xhp#minute"/><embed href="text/sbasic/shared/03030204.xhp#second"/><embed href="text/sbasic/shared/03030205.xhp#timeserial"/><embed href="text/sbasic/shared/03030206.xhp#timevalue"/><embed href="text/sbasic/shared/03030113.xhp#cdatetounotime"/><embed href="text/sbasic/shared/03030114.xhp#cdatefromunotime"/><embed href="text/sbasic/shared/03030115.xhp#cdatetounodatetime"/><embed href="text/sbasic/shared/03030116.xhp#cdatefromunodatetime"/></body></helpdocument>
PK
Nw�X��i9	9	text/sbasic/shared/03090407.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Rem Statement [Runtime]</title><filename>/text/sbasic/shared/03090407.xhp</filename></topic></meta><body><section id="rem"><bookmark branch="index" id="bm_id3154347"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090407.xhp">Rem Statement [Runtime]</link></paragraph><paragraph role="paragraph">Specifies that a program line is a comment.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="comment">Rem Text</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any text that serves as a comment.</paragraph><paragraph role="tip">You can use the single quotation mark instead of the Rem keyword to indicate that the text on a line is comments. This symbol can be inserted directly to the right of the program code, followed by a comment.</paragraph><paragraph role="note">You can use a space followed by the underline character _ as the last two characters of a line to continue the logical line on the next line. To continue comment lines, you must enter "Option Compatible" in the same Basic module.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleMid</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="string">"Las Vegas"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Mid</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">,</item><item type="number">3</item><item type="operator">,</item><item type="number">5</item><item type="operator">)</item> <item type="comment">' Returns "s Veg"</item></paragraph><paragraph role="bascode">    <item type="comment">' Nothing occurs here</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X};|U��text/sbasic/shared/03030203.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Now Function [Runtime]</title><filename>/text/sbasic/shared/03030203.xhp</filename></topic></meta><body><section id="now"><bookmark branch="index" id="bm_id3149416"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030203.xhp">Now Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the current system date and time as a <emph>Date</emph> value.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Now</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleNow</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"It is now "</item> <item type="operator">&amp;</item> <item type="identifier">Now</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�Xtext/sbasic/shared/02/PK
Mw�Xə/Zkk"text/sbasic/shared/02/11140000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Insert Source Text</title><filename>/text/sbasic/shared/02/11140000.xhp</filename></topic></meta><body><section id="laden"><bookmark branch="hid/.uno:LoadBasic" id="bm_id7976858"/><bookmark branch="hid/.uno:LoadBasic" id="bm_id3147446"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11140000.xhp">Insert Source Text</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:LoadBasic">Opens the Basic source text in the Basic IDE window.</ahelp></paragraph></section><paragraph role="paragraph">Place the cursor in the code where you want to insert the source text, and then click the <emph>Insert source text</emph> icon. Locate the file that contains the Basic source text that you want to insert, and then click <emph>Open</emph>.</paragraph><section id="syladen"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_loadbasic.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Insert source text</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X��`"text/sbasic/shared/02/11080000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Enable Watch</title><filename>/text/sbasic/shared/02/11080000.xhp</filename></topic></meta><body><section id="beobachter"><bookmark branch="hid/.uno:AddWatch" id="bm_id7891299"/><bookmark branch="hid/.uno:AddWatch" id="bm_id3157898"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11080000.xhp">Enable Watch</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:AddWatch">Click this icon to view the variables in a macro. The contents of the variable are displayed in a separate window.</ahelp></paragraph></section><paragraph role="paragraph">Click the name of a variable to select it, then click the <emph>Enable Watch</emph> icon. The value that is assigned to the variable is displayed next to its name. This value is constantly updated.</paragraph><section id="sybeobachter"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_addwatch.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Enable Watch</paragraph></tablecell></tablerow></table></section><paragraph role="paragraph">To remove the variable watch, select the variable in the Watch window, and then click on the <emph>Remove Watch</emph> icon.</paragraph></body></helpdocument>
PK
Mw�X�&����"text/sbasic/shared/02/11040000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Stop</title><filename>/text/sbasic/shared/02/11040000.xhp</filename></topic></meta><body><section id="anhalten"><bookmark branch="index" id="bm_id3154863"/><bookmark branch="hid/.uno:BasicStop" id="bm_id2398331"/><bookmark branch="hid/.uno:BasicStop" id="bm_id3149119"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11040000.xhp">Stop</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:BasicStop">Stops running the current macro.</ahelp><switchinline select="sys"><caseinline select="MAC"/><defaultinline> You can also press Shift+Ctrl+Q.</defaultinline></switchinline></paragraph></section><section id="syanhalten"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_basicstop.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Stop</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X�WW"text/sbasic/shared/02/11150000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Save Source As</title><filename>/text/sbasic/shared/02/11150000.xhp</filename></topic></meta><body><section id="speichern"><bookmark branch="hid/.uno:SaveBasicAs" id="bm_id4562232"/><bookmark branch="hid/.uno:SaveBasicAs" id="bm_id3155150"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11150000.xhp">Save Source As</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:SaveBasicAs">Saves the source code of the selected Basic macro.</ahelp></paragraph></section><section id="syspeichern"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_savebasicas.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Save Source As</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�XFhoU%%"text/sbasic/shared/02/11030000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Run</title><filename>/text/sbasic/shared/02/11030000.xhp</filename></topic></meta><body><section id="ausfuehren"><bookmark branch="hid/.uno:RunBasic" id="bm_id2629893"/><bookmark branch="hid/.uno:RunBasic" id="bm_id3150247"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11030000.xhp">Run</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:RunBasic">Runs the first macro of the current module.</ahelp></paragraph></section><section id="syausfuehren"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_runbasic.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Run</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X�iS@��"text/sbasic/shared/02/11020000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Compile</title><filename>/text/sbasic/shared/02/11020000.xhp</filename></topic></meta><body><section id="uebersetzen"><bookmark branch="hid/.uno:CompileBasic" id="bm_id6294791"/><bookmark branch="hid/.uno:CompileBasic" id="bm_id3154230"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11020000.xhp">Compile</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:CompileBasic" visibility="visible">Compiles the Basic macro.</ahelp> You need to compile a macro after you make changes to it, or if the macro uses single or procedure steps.</paragraph></section><section id="syuebersetzen"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_compilebasic.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Compile</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X��"text/sbasic/shared/02/11070000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Breakpoint</title><filename>/text/sbasic/shared/02/11070000.xhp</filename></topic></meta><body><section id="haltepunkt"><bookmark branch="hid/.uno:ToggleBreakPoint" id="bm_id2767094"/><bookmark branch="hid/.uno:ToggleBreakPoint" id="bm_id3159224"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11070000.xhp">Breakpoint</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:ToggleBreakPoint">Inserts a breakpoint in the program line.</ahelp></paragraph></section><paragraph role="paragraph">The breakpoint is inserted at the cursor position. Use a breakpoint to interrupt a program just before an error occurs. You can then troubleshoot the program by running it in <link href="text/sbasic/shared/02/11050000.xhp">Single Step</link> mode until the error occurs. You can also use the <link href="text/sbasic/shared/02/11080000.xhp">Watch</link> icon to check the content of the relevant variables.</paragraph><section id="syhaltepunkt"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_togglebreakpoint.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Breakpoint</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X�����"text/sbasic/shared/02/11010000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Library</title><filename>/text/sbasic/shared/02/11010000.xhp</filename></topic></meta><body><section id="bibliothek"><bookmark branch="hid/.uno:LibSelector" id="bm_id7790007"/><bookmark branch="hid/.uno:LibSelector" id="bm_id3154230"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11010000.xhp">Library</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:LibSelector" visibility="visible">Select the library that you want to edit.</ahelp> The first module of the library that you select is displayed in the Basic IDE.</paragraph></section><section id="sybibliothek"><table><tablerow><tablecell><paragraph role="paragraph"><image src="res/helpimg/feldalle.png" localize="true"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Library List Box</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X*�.hh"text/sbasic/shared/02/11160000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Step Out</title><filename>/text/sbasic/shared/02/11160000.xhp</filename></topic></meta><body><section id="ruecksprung"><bookmark branch="hid/.uno:BasicStepOut" id="bm_id6128534"/><bookmark branch="hid/.uno:BasicStepOut" id="bm_id3153089"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11160000.xhp">Step Out</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:BasicStepOut" visibility="visible">Jumps back to the previous routine in the current macro.</ahelp></paragraph></section><section id="syruecksprung"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_basicstepout.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Step Out</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X�-����"text/sbasic/shared/02/11060000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Procedure Step</title><filename>/text/sbasic/shared/02/11060000.xhp</filename></topic></meta><body><section id="prozedurschritt"><bookmark branch="hid/.uno:BasicStepOver" id="bm_id3926226"/><bookmark branch="hid/.uno:BasicStepOver" id="bm_id3143284"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11060000.xhp">Procedure Step</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:BasicStepOver">Runs the macro and stops it after the next procedure.</ahelp></paragraph></section><paragraph role="paragraph">You can use this command in conjunction with the <link href="text/sbasic/shared/02/11080000.xhp">Watch</link> command to troubleshoot errors.</paragraph><section id="syprozedurschritt"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_basicstepover.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Procedure Step</paragraph></tablecell></tablerow></table></section><section id="relatedtopics"><paragraph role="paragraph"><link href="text/sbasic/shared/02/11050000.xhp">Single Step function</link></paragraph></section></body></helpdocument>
PK
Mw�X�KU��"text/sbasic/shared/02/11120000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Find Parentheses</title><filename>/text/sbasic/shared/02/11120000.xhp</filename></topic></meta><body><section id="klammer"><bookmark branch="hid/.uno:MatchGroup" id="bm_id4424859"/><bookmark branch="hid/.uno:MatchGroup" id="bm_id3148520"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11120000.xhp">Find Parentheses</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:MatchGroup" visibility="visible">Highlights the text that is enclosed by two corresponding brackets. Place the text cursor in front of an opening or closing bracket, and then click this icon.</ahelp></paragraph></section><section id="syklammer"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_matchgroup.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Find Parentheses</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X��x�.�."text/sbasic/shared/02/20000000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Insert Controls</title><filename>/text/sbasic/shared/02/20000000.xhp</filename></topic></meta><body><section id="kontrollfelder"><bookmark branch="index" id="bm_id3150402"/><bookmark branch="hid/.uno:ChooseControls" id="bm_id393577"/><bookmark branch="hid/.uno:ChooseControls" id="bm_id3143206"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/20000000.xhp">Insert Controls</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:ChooseControls">Opens the <emph>Toolbox</emph> bar.</ahelp></paragraph></section><section id="sykontrollfelder"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_choosecontrols.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Insert Controls</paragraph></tablecell></tablerow></table></section><list type="unordered"><listitem><paragraph role="listitem">In edit mode, double-click a control to open the <link href="text/sbasic/shared/01170100.xhp">properties dialog</link>.</paragraph></listitem><listitem><paragraph role="listitem">In edit mode, you can also right-click a control and choose the cut, copy, and paste command.</paragraph></listitem></list><bookmark branch="hid/.uno:InsertPushbutton" id="bm_id6674092"/><paragraph role="heading" level="2">Button</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_insertpushbutton.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertPushbutton">Adds a command button.</ahelp> You can use a command button to execute a command for a defined event, such as a mouse click.</paragraph><paragraph role="paragraph">If you want, you can add text or a graphic to the button.</paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Image Control</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_objectcatalog.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertImageControl">Adds a control that displays a graphic.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Check Box</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_checkbox.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:Checkbox">Adds a check box that you can use to turn a function on or off.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Option Button</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_radiobutton.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:Radiobutton">Adds a button that allows a user to select from a number of options.</ahelp> Grouped option buttons must have consecutive tab indices. They are commonly encircled by a group box. If you have two groups of option buttons, you must insert a tab index between the tab indices of the two groups on the group frame.</paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Label Field</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_insertfixedtext.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertFixedText">Adds a field for displaying text labels.</ahelp> These labels are only for displaying predefined text, and not for entering text.</paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Text Box</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_edit.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertEdit">Adds an input box where you can enter and edit text.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">List Box</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_listbox.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertListbox">Adds a box where you can click an entry on a list.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Combo Box</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_combobox.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:Combobox">Adds a combo box. A combo box is a one line list box that a user can click, and then choose an entry from the list.</ahelp> If you want, you can make the entries in the combo box "read only".</paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Horizontal Scrollbar</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_hscrollbar.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:HScrollbar">Adds a horizontal scrollbar to the dialog.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Vertical Scrollbar</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_vscrollbar.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:VScrollbar">Adds a vertical scrollbar to the dialog.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Group Box</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_groupbox.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:Groupbox">Adds a frame that you can use to visually group similar controls, such as option buttons.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="note">To define two different groups of option buttons, ensure that the tab index of the group frame is between the tab indices of the two groups.</paragraph><bookmark branch="hid/.uno:ProgressBar" id="bm_id9634998"/><paragraph role="heading" level="2">Progress Bar</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_progressbar.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:ProgressBar">Adds a progress bar to the dialog.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Horizontal Line</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_hfixedline.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:HFixedLine">Adds a horizontal line to the dialog.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Vertical Line</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_vfixedline.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:VFixedLine">Adds a vertical line to the dialog.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Date Field</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_adddatefield.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:AddDateField">Adds a date field.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="paragraph">If you assign the "dropdown" property to the date field, a user can drop down a calendar to select a date.</paragraph><bookmark branch="hid/.uno:InsertTimeField" id="bm_id2991424"/><paragraph role="heading" level="2">Time Field</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_timefield.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid="SID_INSERT_TIMEFIELD">Adds a time field.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Numeric Field</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_insertnumericfield.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertNumericField">Adds a numeric field.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Currency Field</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_currencyfield.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertCurrencyField">Adds a currency field.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Formatted Field</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_formattedfield.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertFormattedField">Adds a text box where you can define the formatting for text that is inputted or outputted as well as any limiting values.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Pattern Field</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_insertpatternfield.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertPatternField">Adds a masked field.</ahelp> A masked field consists of an input mask and a literal mask. The input mask determines which user data can be entered. The literal mask determines the state of the masked field when the form is loaded.</paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">File Selection</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_filecontrol.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:InsertFileControl">Adds a button that opens a file selection dialog.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Select</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_drawselect.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".">Activates or deactivates the Selection mode. In this mode, you can select the controls in a dialog so that you can edit them.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Properties</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_controlproperties.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:ShowPropBrowser">Opens a dialog where you can edit the <link href="text/sbasic/shared/01170100.xhp">properties</link> of the selected control.</ahelp></paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Activate Test Mode</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_testmode.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:TestMode">Starts test mode. Click the dialog closer icon to end test mode.</ahelp></paragraph></tablecell></tablerow></table><bookmark branch="hid/.uno:ManageLanguage" id="bm_id5874813"/><paragraph role="heading" level="2">Manage Language</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_managelanguage.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".uno:ManageLanguage">Opens a <link href="text/sbasic/guide/translation.xhp">dialog</link> to enable or manage multiple sets of dialog resources for multiple languages.</ahelp></paragraph></tablecell></tablerow></table><bookmark branch="hid/.uno:InsertTreeControl" id="bm_id1552781"/><paragraph role="heading" level="2">Tree Control</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_inserttreecontrol.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph"><ahelp hid=".">Adds a tree control that can show a hierarchical list. You can populate the list by your program, using API calls (XtreeControl).</ahelp></paragraph></tablecell></tablerow></table></body></helpdocument>
PK
Mw�X�)��@@"text/sbasic/shared/02/11100000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Macros</title><filename>/text/sbasic/shared/02/11100000.xhp</filename></topic></meta><body><section id="makros"><bookmark branch="hid/.uno:ChooseMacro" id="bm_id4112927"/><bookmark branch="hid/.uno:ChooseMacro" id="bm_id3155364"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11100000.xhp">Macros</link></paragraph><paragraph role="paragraph"><ahelp visibility="visible" hid=".uno:ChooseMacro">Opens the <emph>Macro</emph> dialog.</ahelp></paragraph></section><section id="symakros"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_choosemacro.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Macros</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X�=�m��"text/sbasic/shared/02/11110000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Modules</title><filename>/text/sbasic/shared/02/11110000.xhp</filename></topic></meta><body><section id="module"><bookmark branch="hid/.uno:ModuleDialog" id="bm_id1441583"/><bookmark branch="hid/.uno:ModuleDialog" id="bm_id3157898"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11110000.xhp">Modules</link></paragraph><paragraph role="paragraph"><ahelp visibility="visible" hid=".uno:ModuleDialog">Click here to open the <link href="text/sbasic/shared/01/06130000.xhp"><emph>Macro Organizer</emph></link> dialog.</ahelp></paragraph></section><section id="symodule"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_moduledialog.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Modules</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X�Xf��"text/sbasic/shared/02/11050000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Single Step</title><filename>/text/sbasic/shared/02/11050000.xhp</filename></topic></meta><body><section id="einzelschritt"><bookmark branch="hid/.uno:BasicStepInto" id="bm_id3917322"/><bookmark branch="hid/.uno:BasicStepInto" id="bm_id3149495"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11050000.xhp">Single Step</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:BasicStepInto">Runs the macro and stops it after the next command.</ahelp></paragraph></section><paragraph role="paragraph">You can use this command in conjunction with the <link href="text/sbasic/shared/02/11080000.xhp">Watch</link> command to troubleshoot errors.</paragraph><section id="syeinzelschritt"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_basicstepinto.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Single Step</paragraph></tablecell></tablerow></table></section><section id="relatedtopics"><paragraph role="paragraph"><link href="text/sbasic/shared/02/11060000.xhp">Procedure Step function</link></paragraph></section></body></helpdocument>
PK
Mw�XI��	�	"text/sbasic/shared/02/11180000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Import Dialog</title><filename>/text/sbasic/shared/02/11180000.xhp</filename></topic></meta><body><section id="import"><bookmark branch="hid/.uno:ImportDialog" id="bm_id092920903013963"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11180000.xhp">Import Dialog</link></paragraph><paragraph role="paragraph"><ahelp hid=".">Calls an "Open" dialog to import a BASIC dialog file.</ahelp></paragraph><paragraph role="paragraph">If the imported dialog has a name that already exists in the library, you see a message box where you can decide to rename the imported dialog. In this case the dialog will be renamed to the next free "automatic" name like when creating a new dialog. Or you can replace the existing dialog by the imported dialog. If you click Cancel the dialog is not imported.</paragraph><paragraph role="paragraph">Dialogs can contain localization data. When importing a dialog, a mismatch of the dialogs' localization status can occur.</paragraph><paragraph role="paragraph">If the library contains additional languages compared to the imported dialog, or if the imported dialog is not localized at all, then the additional languages will silently be added to the imported dialog using the strings of the dialog's default locale.</paragraph><paragraph role="paragraph">If the imported dialog contains additional languages compared to the library, or if the library is not localized at all, then you see a message box with Add, Omit, and Cancel buttons.</paragraph><list type="unordered"><listitem><paragraph role="paragraph">Add: The additional languages from the imported dialog will be added to the already existing dialog. The resources from the library's default language will be used for the new languages. This is the same as if you add these languages manually.</paragraph></listitem><listitem><paragraph role="paragraph">Omit: The library's language settings will stay unchanged. The imported dialog's resources for the omitted languages are not copied into the library, but they remain in the imported dialog's source files.</paragraph></listitem></list></section><section id="syimport"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_importdialog.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Import Dialog</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�X�\:;;"text/sbasic/shared/02/11190000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Export Dialog</title><filename>/text/sbasic/shared/02/11190000.xhp</filename></topic></meta><body><section id="export"><bookmark branch="hid/.uno:ExportDialog" id="bm_id099200903013963"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11190000.xhp">Export Dialog</link></paragraph><paragraph role="paragraph"><ahelp hid=".">In the dialog editor, this command calls a "Save as" dialog to export the current BASIC dialog.</ahelp></paragraph></section><section id="syexport"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_exportdialog.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Export Dialog</paragraph></tablecell></tablerow></table></section></body></helpdocument>
PK
Mw�Xx6���"text/sbasic/shared/02/11090000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Object Catalog</title><filename>/text/sbasic/shared/02/11090000.xhp</filename></topic></meta><body><section id="okatalog"><bookmark branch="hid/.uno:ObjectCatalog" id="bm_id8689372"/><bookmark branch="hid/.uno:ObjectCatalog" id="bm_id3157898"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11090000.xhp">Object Catalog</link></paragraph><paragraph role="paragraph"><ahelp hid=".uno:ObjectCatalog">Opens the <emph>Objects</emph> pane, where you can view Basic objects.</ahelp></paragraph></section><paragraph role="paragraph">Double click the name of a function or sub to load the module that contains that function or sub, and to position the cursor. Double click the name of a module or dialog to load and display that module or dialog.</paragraph><section id="syobjektkatalog"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_objectcatalog.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Object Catalog</paragraph></tablecell></tablerow></table></section><bookmark branch="hid/BASCTL_HID_BASICIDE_OBJECTCAT" id="bm_id3148664"/><paragraph role="heading" level="2">Window Area</paragraph><paragraph role="paragraph"><ahelp hid="HID_BASICIDE_OBJECTCAT">Displays a hierarchical view of the current $[officename] macro libraries, modules, and dialogs. To display the contents of an item in the window, double click its name.</ahelp></paragraph></body></helpdocument>
PK
Mw�X��G���"text/sbasic/shared/02/11170000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Manage Breakpoints</title><filename>/text/sbasic/shared/02/11170000.xhp</filename></topic></meta><body><section id="manage_breakpoints"><bookmark branch="hid/.uno:ManageBreakPoints" id="bm_id0929200903013963"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/02/11170000.xhp">Manage Breakpoints</link></paragraph><paragraph role="paragraph"><ahelp hid=".">Calls a dialog to manage breakpoints.</ahelp></paragraph></section><section id="sybreakpoints"><table><tablerow><tablecell><paragraph role="paragraph"><image src="cmd/sc_managebreakpoints.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Manage Breakpoints</paragraph></tablecell></tablerow></table></section><section id="relatedtopics"><paragraph role="paragraph"><link href="text/sbasic/shared/01050300.xhp"><emph>Manage Breakpoints</emph> dialog</link></paragraph></section></body></helpdocument>
PK
Nw�X��Q�
�
text/sbasic/shared/03100700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Const Statement [Runtime]</title><filename>/text/sbasic/shared/03100700.xhp</filename></topic></meta><body><section id="const"><bookmark branch="index" id="bm_id3146958"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100700.xhp">Const Statement [Runtime]</link></paragraph><paragraph role="paragraph">Defines a string as a constant.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Const</item> <item type="keyword">Text</item> <item type="operator">=</item> <item type="identifier">Expression</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any constant name that follows the standard variable naming conventions.</paragraph><paragraph role="paragraph">A constant is a variable that helps to improve the readability of a program. Constants are not defined as a specific type of variable, but rather are used as placeholders in the code. You can only define a constant once and it cannot be modified. Use the following statement to define a constant:</paragraph><paragraph role="paragraph">CONST ConstName=Expression</paragraph><paragraph role="paragraph">The type of expression is irrelevant. If a program is started, $[officename] Basic converts the program code internally so that each time a constant is used, the defined expression replaces it.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleConst</item></paragraph><paragraph role="bascode">    <item type="keyword">Const</item> <item type="identifier">iVar</item> <item type="operator">=</item> <item type="number">1964</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">iVar</item></paragraph><paragraph role="bascode">    <item type="keyword">Const</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="string">"Program"</item><item type="operator">,</item> <item type="identifier">dVar</item> <item type="keyword">As</item> <item type="keyword">Double</item> <item type="operator">=</item> <item type="number">1.00</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sVar</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">dVar</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X=�<kUUtext/sbasic/shared/03080802.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Oct Function [Runtime]</title><filename>/text/sbasic/shared/03080802.xhp</filename></topic></meta><body><section id="oct"><bookmark branch="index" id="bm_id3155420"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080802.xhp">Oct Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the octal value of a number.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Oct</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numeric expression that you want to convert to an octal value.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleOct</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Oct</item><item type="operator">(</item><item type="number">255</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�D���text/sbasic/shared/03103200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Option Base Statement [Runtime]</title><filename>/text/sbasic/shared/03103200.xhp</filename></topic></meta><body><section id="optionbase"><bookmark branch="index" id="bm_id3155805"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103200.xhp">Option Base Statement [Runtime]</link></paragraph><paragraph role="paragraph">Defines the default lower boundary for arrays as 0 or 1.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Option</item> <item type="keyword">Base</item> <item type="operator">{</item> <item type="number">0</item> <item type="operator">|</item> <item type="number">1</item><item type="operator">}</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="warning">This statement must be added before the executable program code in a module.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Option</item> <item type="keyword">Base</item> <item type="number">1</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleOptionBase</item></paragraph><paragraph role="bascode">   <item type="keyword">Dim</item> <item type="identifier">sVar</item><item type="operator">(</item><item type="number">20</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">   <item type="identifier">MsgBox</item> <item type="identifier">LBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XJ����text/sbasic/shared/03131500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CreateUnoStruct Function [Runtime]</title><filename>/text/sbasic/shared/03131500.xhp</filename></topic></meta><body><section id="createunostruct"><bookmark branch="index" id="bm_id3150499"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03131500.xhp">CreateUnoStruct Function [Runtime]</link></paragraph><paragraph role="paragraph"><ahelp hid=".">Creates an instance of a Uno structure type.</ahelp></paragraph></section><paragraph role="paragraph">Use the following structure for your statement:</paragraph><paragraph role="paragraph">Dim oStruct as new com.sun.star.beans.Property</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">oStruct</item> <item type="operator">=</item> <item type="identifier">CreateUnoStruct</item><item type="operator">(</item> <item type="identifier">Uno</item> <item type="keyword">type</item> <item type="keyword">name</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">oStruct = CreateUnoStruct( "com.sun.star.beans.Property" )</paragraph></body></helpdocument>
PK
Nw�X�#�
�
text/sbasic/shared/03080202.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Log Function [Runtime]</title><filename>/text/sbasic/shared/03080202.xhp</filename></topic></meta><body><section id="log"><bookmark branch="index" id="bm_id3149416"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080202.xhp">Log Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the natural logarithm of a number.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Log</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numeric expression that you want to calculate the natural logarithm for.</paragraph><paragraph role="paragraph">The natural logarithm is the logarithm to the base e. Base e is a constant with an approximate value of 2.718282...</paragraph><paragraph role="paragraph">You can calculate logarithms to any base (n) for any number (x) by dividing the natural logarithm of x by the natural logarithm of n, as follows:</paragraph><paragraph role="paragraph">Log n(x) = Log(x) / Log(n)</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleLogExp</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">a</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="keyword">Const</item> <item type="identifier">b1</item><item type="operator">=</item><item type="number">12.345e12</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="keyword">Const</item> <item type="identifier">b2</item><item type="operator">=</item><item type="number">1.345e34</item></paragraph><paragraph role="bascode">    <item type="identifier">a</item><item type="operator">=</item><item type="identifier">Exp</item><item type="operator">(</item> <item type="identifier">Log</item><item type="operator">(</item><item type="identifier">b1</item><item type="operator">)</item><item type="operator">+</item><item type="identifier">Log</item><item type="operator">(</item><item type="identifier">b2</item><item type="operator">)</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">a</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="operator">(</item><item type="identifier">b1</item><item type="operator">*</item><item type="identifier">b2</item><item type="operator">)</item> <item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Multiplication by logarithm function"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X��x��text/sbasic/shared/01020500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Libraries, Modules and Dialogs</title><filename>/text/sbasic/shared/01020500.xhp</filename></topic></meta><body><section id="biblio"><paragraph role="heading" level="1"><link href="text/sbasic/shared/01020500.xhp">Libraries, Modules and Dialogs</link></paragraph><paragraph role="paragraph">The following describes the basic use of libraries, modules and dialogs in $[officename] Basic.</paragraph></section><paragraph role="paragraph">$[officename] Basic provides tools to help you structuring your projects. It supports various "units" which enable you to group individual SUBS and FUNCTIONS in a Basic project.</paragraph><paragraph role="heading" level="2">Libraries</paragraph><paragraph role="paragraph">Libraries serve as a tool for organizing modules, and can either be attached to a document or a template. When the document or a template is saved, all modules contained in the library are automatically saved as well.</paragraph><paragraph role="paragraph">A library can contain up to 16,000 modules.</paragraph><paragraph role="heading" level="2">Modules</paragraph><paragraph role="paragraph">A module contains SUBS and FUNCTIONS along with variable declarations. The length of the program that can be saved in a module is limited to 64 KB. If more space is required you can divide a $[officename] Basic project among several modules, and then save them in a single library.</paragraph><paragraph role="heading" level="2">Dialog Modules</paragraph><paragraph role="paragraph">Dialog modules contain dialog definitions, including the dialog box properties, the properties of each dialog element and the events assigned. Since a dialog module can only contain a single dialog, they are often referred to as "dialogs".</paragraph><section id="relatedtopics"><embed href="text/sbasic/shared/01030400.xhp#01030400"/></section></body></helpdocument>
PK
Nw�X�J���text/sbasic/shared/03120201.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Space Function [Runtime]</title><filename>/text/sbasic/shared/03120201.xhp</filename></topic></meta><body><section id="space"><bookmark branch="index" id="bm_id3150499"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120201.xhp">Space Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a string that consists of a specified amount of spaces.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Space</item> <item type="operator">(</item><item type="identifier">n</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>n:</emph> Numeric expression that defines the number of spaces in the string. The maximum allowed value of n is 65535.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSpace</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item><item type="identifier">sOut</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iLen</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iLen</item> <item type="operator">=</item> <item type="number">10</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="string">"Las Vegas"</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sText</item> <item type="operator">&amp;</item> <item type="identifier">Space</item><item type="operator">(</item><item type="identifier">iLen</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">sText</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">&amp;</item> <item type="identifier">Space</item><item type="operator">(</item><item type="identifier">iLen</item><item type="operator">*</item><item type="number">2</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">sText</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">&amp;</item> <item type="identifier">Space</item><item type="operator">(</item><item type="identifier">iLen</item><item type="operator">*</item><item type="number">4</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">sText</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sOut</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Info:"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X6�Ⱦ�text/sbasic/shared/03020409.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GetAttr Function [Runtime]</title><filename>/text/sbasic/shared/03020409.xhp</filename></topic></meta><body><section id="getattr"><bookmark branch="index" id="bm_id3150984"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020409.xhp">GetAttr Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a bit pattern that identifies the file type or the name of a volume or a directory.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">GetAttr</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that contains an unambiguous file specification. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph">This function determines the attributes for a specified file and returns the bit pattern that can help you to identify the following file attributes:</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err53"/><paragraph role="heading" level="2">Value</paragraph><paragraph role="paragraph">0 : Normal files.</paragraph><paragraph role="paragraph">1 : Read-only files.</paragraph><paragraph role="paragraph">8 : Returns the name of the volume</paragraph><paragraph role="paragraph">16 : Returns the name of the directory only.</paragraph><paragraph role="paragraph">32 : File was changed since last backup (Archive bit).</paragraph><paragraph role="paragraph">If you want to know if a bit of the attribute byte is set, use the following query method:</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSetGetAttr</item></paragraph><paragraph role="bascode"><item type="keyword">On</item> <item type="keyword">Error</item> <item type="keyword">GoTo</item> <item type="identifier">ErrorHandler</item> <item type="comment">' Define target for error handler</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">Dir</item><item type="operator">(</item><item type="string">"C:\test"</item><item type="operator">,</item><item type="number">16</item><item type="operator">)</item><item type="operator">=</item><item type="string">""</item> <item type="keyword">Then</item> <item type="identifier">MkDir</item> <item type="string">"C:\test"</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">Dir</item><item type="operator">(</item><item type="string">"C:\test\autoexec.sav"</item><item type="operator">)</item><item type="operator">=</item><item type="string">""</item> <item type="keyword">Then</item> <item type="identifier">FileCopy</item> <item type="string">"c:\autoexec.bat"</item><item type="operator">,</item> <item type="string">"c:\test\autoexec.sav"</item></paragraph><paragraph role="bascode">            <item type="identifier">SetAttr</item> <item type="string">"c:\test\autoexec.sav"</item> <item type="operator">,</item><item type="number">0</item></paragraph><paragraph role="bascode">            <item type="identifier">FileCopy</item> <item type="string">"c:\autoexec.bat"</item><item type="operator">,</item> <item type="string">"c:\test\autoexec.sav"</item></paragraph><paragraph role="bascode">            <item type="identifier">SetAttr</item> <item type="string">"c:\test\autoexec.sav"</item> <item type="operator">,</item><item type="number">1</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="identifier">GetAttr</item><item type="operator">(</item> <item type="string">"c:\test\autoexec.sav"</item> <item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item></paragraph><paragraph role="bascode"><item type="identifier">ErrorHandler</item><item type="parameter">:</item></paragraph><paragraph role="bascode">        <item type="keyword">Print</item> <item type="keyword">Error</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xp%,��text/sbasic/shared/03050500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>On Error GoTo ... Resume Statement [Runtime]</title><filename>/text/sbasic/shared/03050500.xhp</filename></topic></meta><body><section id="onerrorgotoresume"><bookmark branch="index" id="bm_id3146795"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03050500.xhp">On Error GoTo ... Resume Statement [Runtime]</link></paragraph><paragraph role="paragraph">Enables an error-handling routine after an error occurs, or resumes program execution.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">On</item> <item type="operator">{</item><item type="identifier">[Local]</item> <item type="keyword">Error</item> <item type="keyword">GoTo</item> <item type="identifier">Labelname</item> <item type="operator">|</item> <item type="keyword">GoTo</item> <item type="number">0</item> <item type="operator">|</item> <item type="keyword">Resume</item> <item type="keyword">Next</item><item type="operator">}</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>GoTo Labelname:</emph> If an error occurs, enables the error-handling routine that starts at the line "Labelname".</paragraph><paragraph role="paragraph"><emph>Resume Next:</emph> If an error occurs, program execution continues with the statement that follows the statement in which the error occurred.</paragraph><paragraph role="paragraph"><emph>GoTo 0:</emph> Disables the error handler in the current procedure.</paragraph><paragraph role="paragraph"><emph>Local:</emph> "On error" is global in scope, and remains active until canceled by another "On error" statement. "On Local error" is local to the routine which invokes it. Local error handling overrides any previous global setting. When the invoking routine exits, the local error handling is canceled automatically, and any previous global setting is restored.</paragraph><paragraph role="paragraph">The On Error GoTo statement is used to react to errors that occur in a macro.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleReset</item></paragraph><paragraph role="bascode"><item type="keyword">On</item> <item type="keyword">Error</item> <item type="keyword">GoTo</item> <item type="identifier">ErrorHandler</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sLine</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"This is a line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">5</item></paragraph><paragraph role="bascode">        <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="identifier">sLine</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sLine</item> <item type="operator">&lt;</item><item type="operator">&gt;</item><item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="comment">Rem</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Exit</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"><item type="identifier">ErrorHandler</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">Reset</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"All files will be closed"</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Error"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�����text/sbasic/shared/03090403.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Declare Statement [Runtime]</title><filename>/text/sbasic/shared/03090403.xhp</filename></topic></meta><body><section id="declare"><bookmark branch="index" id="bm_id3148473"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090403.xhp">Declare Statement [Runtime]</link></paragraph><bookmark branch="index" id="bm_id3145316"/><paragraph role="paragraph">Declares and defines a subroutine in a DLL file that you want to execute from $[officename] Basic.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03090405.xhp">FreeLibrary</link></paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Declare</item> <item type="operator">{</item><item type="keyword">Sub</item> <item type="operator">|</item> <item type="keyword">Function</item><item type="operator">}</item> <item type="keyword">Name</item> <item type="keyword">Lib</item> <item type="string">"Libname"</item> <item type="identifier">[Alias "Aliasname"]</item> <item type="identifier">[Parameter]</item> <item type="identifier">[As Type]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Name:</emph> A different name than defined in the DLL, to call the subroutine from $[officename] Basic.</paragraph><paragraph role="paragraph"><emph>Aliasname</emph>: Name of the subroutine as defined in the DLL.</paragraph><paragraph role="paragraph"><emph>Libname:</emph> File or system name of the DLL. This library is automatically loaded the first time the function is used.</paragraph><paragraph role="paragraph"><emph>Argumentlist:</emph> List of parameters representing arguments that are passed to the procedure when it is called. The type and number of parameters is dependent on the executed procedure.</paragraph><paragraph role="paragraph"><emph>Type:</emph> Defines the data type of the value that is returned by a function procedure. You can exclude this parameter if a type-declaration character is entered after the name.</paragraph><paragraph role="warning">To pass a parameter to a subroutine as a value instead of as a reference, the parameter must be indicated by the keyword <emph>ByVal</emph>.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Declare</item> <item type="keyword">Sub</item> <item type="identifier">MyMessageBeep</item> <item type="keyword">Lib</item> <item type="string">"user32.dll"</item> <item type="keyword">Alias</item> <item type="string">"MessageBeep"</item> <item type="operator">(</item> <item type="keyword">Long</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDeclare</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lValue</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lValue</item> <item type="operator">=</item> <item type="number">5000</item></paragraph><paragraph role="bascode">    <item type="identifier">MyMessageBeep</item><item type="operator">(</item> <item type="identifier">lValue</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">FreeLibrary</item><item type="operator">(</item><item type="string">"user32.dll"</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�XUHw..text/sbasic/shared/03020104.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Reset Statement [Runtime]</title><filename>/text/sbasic/shared/03020104.xhp</filename></topic></meta><body><section id="reset"><bookmark branch="index" id="bm_id3154141"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020104.xhp">Reset Statement [Runtime]</link></paragraph><paragraph role="paragraph">Closes all open files and writes the contents of all file buffers to the harddisk.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Reset</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleReset</item></paragraph><paragraph role="bascode"><item type="keyword">On</item> <item type="keyword">Error</item> <item type="keyword">GoTo</item> <item type="identifier">ErrorHandler</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sLine</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"This is a new line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">5</item></paragraph><paragraph role="bascode">        <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="identifier">sLine</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sLine</item> <item type="operator">&lt;</item><item type="operator">&gt;</item><item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="comment">Rem</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Exit</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"><item type="identifier">ErrorHandler</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">Reset</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"All files will be closed"</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Error"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X����jjtext/sbasic/shared/03080200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Exponential and Logarithmic Functions</title><filename>/text/sbasic/shared/03080200.xhp</filename></topic></meta><body><section id="loga"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080200.xhp">Exponential and Logarithmic Functions</link></paragraph><paragraph role="paragraph">$[officename] Basic supports the following exponential and logarithmic functions.</paragraph></section><embed href="text/sbasic/shared/03080201.xhp#exp"/><embed href="text/sbasic/shared/03080202.xhp#log"/></body></helpdocument>
PK
Nw�X�Y�HHtext/sbasic/shared/03030205.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>TimeSerial Function [Runtime]</title><filename>/text/sbasic/shared/03030205.xhp</filename></topic></meta><body><section id="timeserial"><bookmark branch="index" id="bm_id3143271"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030205.xhp">TimeSerial Function [Runtime]</link></paragraph><paragraph role="paragraph">Calculates a serial time value for the specified hour, minute, and second parameters that are passed as numeric value. You can then use this value to calculate the difference between times.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">TimeSerial</item> <item type="operator">(</item><item type="identifier">hour</item><item type="operator">,</item> <item type="identifier">minute</item><item type="operator">,</item> <item type="identifier">second</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>hour:</emph> Any integer expression that indicates the hour of the time that is used to determine the serial time value. Valid values: 0-23.</paragraph><paragraph role="paragraph"><emph>minute:</emph> Any integer expression that indicates the minute of the time that is used to determine the serial time value. In general, use values between 0 and 59. However, you can also use values that lie outside of this range, where the number of minutes influence the hour value.</paragraph><paragraph role="paragraph"><emph>second:</emph> Any integer expression that indicates the second of the time that is used to determine the serial time value. In general, you can use values between 0 and 59. However, you can also use values that lie outside of this range, where the number seconds influences the minute value.</paragraph><paragraph role="paragraph"><emph>Examples:</emph></paragraph><paragraph role="paragraph">12, -5, 45 corresponds to 11, 55, 45</paragraph><paragraph role="paragraph">12, 61, 45 corresponds to 13, 2, 45</paragraph><paragraph role="paragraph">12, 20, -2 corresponds to 12, 19, 58</paragraph><paragraph role="paragraph">12, 20, 63 corresponds to 12, 21, 4</paragraph><paragraph role="paragraph">You can use the TimeSerial function to convert any time into a single value that you can use to calculate time differences.</paragraph><paragraph role="paragraph">The TimeSerial function returns the type Variant with VarType 7 (Date). This value is stored internally as a double-precision number between 0 and 0.9999999999. As opposed to the DateSerial or DateValue function, where the serial date values are calculated as days relative to a fixed date, you can calculate with values returned by the TimeSerial function, but you cannot evaluate them.</paragraph><paragraph role="paragraph">In the TimeValue function, you can pass a string as a parameter containing the time. For the TimeSerial function, however, you can pass the individual parameters (hour, minute, second) as separate numeric expressions.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleTimeSerial</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">dDate</item> <item type="keyword">As</item> <item type="keyword">Double</item><item type="operator">,</item> <item type="identifier">sDate</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">dDate</item> <item type="operator">=</item> <item type="identifier">TimeSerial</item><item type="operator">(</item><item type="number">8</item><item type="operator">,</item><item type="number">30</item><item type="operator">,</item><item type="number">15</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sDate</item> <item type="operator">=</item> <item type="identifier">TimeSerial</item><item type="operator">(</item><item type="number">8</item><item type="operator">,</item><item type="number">30</item><item type="operator">,</item><item type="number">15</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">dDate</item><item type="operator">,</item><item type="number">64</item><item type="operator">,</item><item type="string">"Time as a number"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sDate</item><item type="operator">,</item><item type="number">64</item><item type="operator">,</item><item type="string">"Formatted time"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�DJ]aatext/sbasic/shared/03090412.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Exit Statement [Runtime]</title><filename>/text/sbasic/shared/03090412.xhp</filename></topic></meta><body><section id="exit"><bookmark branch="index" id="bm_id3152924"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090412.xhp">Exit Statement [Runtime]</link></paragraph><paragraph role="paragraph">Exits a <emph>Do...Loop</emph>, <emph>For...Next</emph>, a function, or a subroutine.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">see</item> <item type="identifier">Parameters</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Exit Do</emph></paragraph><paragraph role="paragraph">Only valid within a <emph>Do...Loop</emph> statement to exit the loop. Program execution continues with the statement that follows the Loop statement. If <emph>Do...Loop</emph> statements are nested, the control is transferred to the loop in the next higher level.</paragraph><paragraph role="paragraph"><emph>Exit For</emph></paragraph><paragraph role="paragraph">Only valid within a <emph>For...Next</emph> loop to exit the loop. Program execution continues with the first statement that follows the <emph>Next</emph> statement. In nested statements, the control is transferred to the loop in the next higher level.</paragraph><paragraph role="paragraph"><emph>Exit Function</emph></paragraph><paragraph role="paragraph">Exits the <emph>Function</emph> procedure immediately. Program execution continues with the statement that follows the <emph>Function</emph> call.</paragraph><paragraph role="paragraph"><emph>Exit Sub</emph></paragraph><paragraph role="paragraph">Exits the subroutine immediately. Program execution continues with the statement that follows the <emph>Sub</emph> call.</paragraph><paragraph role="note">The Exit statement does not define the end of a structure, and must not be confused with the End statement.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleExit</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sReturn</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sListArray</item><item type="operator">(</item><item type="number">10</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">siStep</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">siStep</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">10</item> <item type="comment">' Fill array with test data</item></paragraph><paragraph role="bascode">        <item type="identifier">sListArray</item><item type="operator">(</item><item type="identifier">siStep</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">chr</item><item type="operator">(</item><item type="identifier">siStep</item> <item type="operator">+</item> <item type="number">65</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="identifier">MsgBox</item> <item type="identifier">sListArray</item><item type="operator">(</item><item type="identifier">siStep</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">siStep</item></paragraph><paragraph role="bascode">    <item type="identifier">sReturn</item> <item type="operator">=</item> <item type="identifier">LinSearch</item><item type="operator">(</item><item type="identifier">sListArray</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item> <item type="string">"B"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sReturn</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">LinSearch</item><item type="operator">(</item> <item type="identifier">sList</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item> <item type="identifier">sItem</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="comment">' LinSearch searches a TextArray:sList() for a TextEntry:</item></paragraph><paragraph role="bascode"><item type="comment">' Returns the index of the entry or 0 (Null)</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item><item type="operator">=</item><item type="number">1</item> <item type="keyword">To</item> <item type="identifier">Ubound</item><item type="operator">(</item> <item type="identifier">sList</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sList</item><item type="operator">(</item> <item type="identifier">iCount</item> <item type="operator">)</item> <item type="operator">=</item> <item type="identifier">sItem</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="keyword">Exit</item> <item type="keyword">For</item> <item type="comment">' sItem found</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="identifier">Ubound</item><item type="operator">(</item> <item type="identifier">sList</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">)</item> <item type="keyword">Then</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">0</item></paragraph><paragraph role="bascode">    <item type="identifier">LinSearch</item> <item type="operator">=</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode></body></helpdocument>
PK
Nw�XW-1��'�'text/sbasic/shared/03120314.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Split Function [Runtime]</title><filename>/text/sbasic/shared/03120314.xhp</filename></topic></meta><body><section id="split"><bookmark branch="index" id="bm_id3156027"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120314.xhp">Split Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns an array of substrings from a string expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Split</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">delimiter</item><item type="operator">,</item> <item type="identifier">number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression.</paragraph><paragraph role="paragraph"><emph>delimiter (optional):</emph> A string of one or more characters length that is used to delimit the Text. The default is the space character.</paragraph><paragraph role="paragraph"><emph>number (optional):</emph> The number of substrings that you want to return.</paragraph><paragraph role="heading" level="2">Example:</paragraph><section id="splitjoinex"><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">a</item><item type="operator">(</item><item type="number">3</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">main</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">a</item><item type="operator">(</item><item type="number">0</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"ABCDE"</item></paragraph><paragraph role="bascode">    <item type="identifier">a</item><item type="operator">(</item><item type="number">1</item><item type="operator">)</item> <item type="operator">=</item> <item type="number">42</item></paragraph><paragraph role="bascode">    <item type="identifier">a</item><item type="operator">(</item><item type="number">2</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"MN"</item></paragraph><paragraph role="bascode">    <item type="identifier">a</item><item type="operator">(</item><item type="number">3</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"X Y Z"</item></paragraph><paragraph role="bascode">    <item type="identifier">JStr</item> <item type="operator">=</item> <item type="identifier">Join1</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Call</item> <item type="identifier">Show</item><item type="operator">(</item><item type="identifier">JStr</item><item type="operator">,</item> <item type="identifier">Split1</item><item type="operator">(</item><item type="identifier">JStr</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">JStr</item> <item type="operator">=</item> <item type="identifier">Join2</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Call</item> <item type="identifier">Show</item><item type="operator">(</item><item type="identifier">JStr</item><item type="operator">,</item> <item type="identifier">Split1</item><item type="operator">(</item><item type="identifier">JStr</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">JStr</item> <item type="operator">=</item> <item type="identifier">Join3</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Call</item> <item type="identifier">Show</item><item type="operator">(</item><item type="identifier">JStr</item><item type="operator">,</item> <item type="identifier">Split1</item><item type="operator">(</item><item type="identifier">JStr</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">Join1</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">Join1</item> <item type="operator">=</item> <item type="identifier">Join</item><item type="operator">(</item><item type="identifier">a</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item> <item type="string">"abc"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">Join2</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">Join2</item> <item type="operator">=</item> <item type="identifier">Join</item><item type="operator">(</item><item type="identifier">a</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item> <item type="string">","</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">Join3</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">Join3</item> <item type="operator">=</item> <item type="identifier">Join</item><item type="operator">(</item><item type="identifier">a</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">Split1</item><item type="operator">(</item><item type="identifier">aStr</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">Split1</item> <item type="operator">=</item> <item type="identifier">Split</item><item type="operator">(</item><item type="identifier">aStr</item><item type="operator">,</item> <item type="string">"D"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Show</item><item type="operator">(</item><item type="identifier">JoinStr</item><item type="operator">,</item> <item type="identifier">TheArray</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">l</item> <item type="operator">=</item> <item type="identifier">LBound</item><item type="operator">(</item><item type="identifier">TheArray</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">u</item> <item type="operator">=</item> <item type="identifier">UBound</item><item type="operator">(</item><item type="identifier">TheArray</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">total$</item> <item type="operator">=</item> <item type="string">"============================="</item> <item type="operator">+</item> <item type="identifier">Chr$</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">JoinStr</item> <item type="operator">+</item> <item type="identifier">Chr$</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">Chr$</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">i</item> <item type="operator">=</item> <item type="identifier">l</item> <item type="keyword">To</item> <item type="identifier">u</item></paragraph><paragraph role="bascode">        <item type="identifier">total$</item> <item type="operator">=</item> <item type="identifier">total$</item> <item type="operator">+</item> <item type="identifier">TheArray</item><item type="operator">(</item><item type="identifier">i</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">Str</item><item type="operator">(</item><item type="identifier">Len</item><item type="operator">(</item><item type="identifier">TheArray</item><item type="operator">(</item><item type="identifier">i</item><item type="operator">)</item><item type="operator">)</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">Chr$</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">i</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">total$</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></section></body></helpdocument>
PK
Nw�X_��text/sbasic/shared/03020408.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FileLen Function [Runtime]</title><filename>/text/sbasic/shared/03020408.xhp</filename></topic></meta><body><section id="filelen"><bookmark branch="index" id="bm_id3153126"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020408.xhp">FileLen Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the length of a file in bytes.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FileLen</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that contains an unambiguous file specification. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph">This function determines the length of a file. If the FileLen function is called for an open file, it returns the file length before it was opened. To determine the current file length of an open file, use the Lof function.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleFileLen</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">FileLen</item><item type="operator">(</item><item type="string">"C:\autoexec.bat"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X������text/sbasic/shared/03130500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Shell Function [Runtime]</title><filename>/text/sbasic/shared/03130500.xhp</filename></topic></meta><body><section id="shell"><bookmark branch="index" id="bm_id3150040"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03130500.xhp">Shell Function [Runtime]</link></paragraph><paragraph role="paragraph">Starts another application and defines the respective window style, if necessary.</paragraph></section><paragraph role="heading" level="2">Syntax</paragraph><paragraph role="paragraph">Shell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync]) </paragraph><paragraph role="heading" level="2">Parameter</paragraph><paragraph role="heading" level="3">Pathname</paragraph><paragraph role="paragraph">Complete path and program name of the program that you want to start.</paragraph><paragraph role="heading" level="3">Windowstyle</paragraph><paragraph role="paragraph">Optional integer expression that specifies the style of the window that the program is executed in. The following values are possible:</paragraph><table><tablerow><tablecell><paragraph role="paragraph">0</paragraph></tablecell><tablecell><paragraph role="paragraph">The focus is on the hidden program window.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">1</paragraph></tablecell><tablecell><paragraph role="paragraph">The focus is on the program window in standard size.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">2</paragraph></tablecell><tablecell><paragraph role="paragraph">The focus is on the minimized program window.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">3</paragraph></tablecell><tablecell><paragraph role="paragraph">focus is on the maximized program window.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">4</paragraph></tablecell><tablecell><paragraph role="paragraph">Standard size program window, without focus.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">6</paragraph></tablecell><tablecell><paragraph role="paragraph">Minimized program window, focus remains on the active window.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">10</paragraph></tablecell><tablecell><paragraph role="paragraph">Full-screen display.</paragraph></tablecell></tablerow></table><paragraph role="heading" level="3">Param</paragraph><paragraph role="paragraph">Any string expression that specifies the command line that want to pass.</paragraph><paragraph role="heading" level="3">bSync</paragraph><paragraph role="paragraph">If this value is set to <emph>true</emph>, the <emph>Shell</emph> command and all $[officename] tasks wait until the shell process completes. If the value is set to <emph>false</emph>, the shell returns directly. The default value is <emph>false</emph>.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err53"/><embed href="text/sbasic/shared/00000003.xhp#err73"/><paragraph role="heading" level="2">Example</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleShellForWin</item></paragraph><paragraph role="bascode">    <item type="identifier">Shell</item><item type="operator">(</item><item type="string">"c:\windows\calc.exe"</item><item type="operator">,</item><item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X|���22text/sbasic/shared/03102600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsNull Function [Runtime]</title><filename>/text/sbasic/shared/03102600.xhp</filename></topic></meta><body><section id="isnull"><bookmark branch="index" id="bm_id3155555"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102600.xhp">IsNull Function [Runtime]</link></paragraph><paragraph role="paragraph">Tests if a Variant contains the special Null value, indicating that the variable does not contain data.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsNull</item> <item type="operator">(</item><item type="identifier">Var</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Var:</emph> Any variable that you want to test. This function returns True if the Variant contains the Null value, or False if the Variant does not contain the Null value.</paragraph><paragraph role="paragraph"><emph>Null</emph> - This value is used for a variant data sub type without valid contents.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleIsNull</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vVar</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">IsNull</item><item type="operator">(</item><item type="identifier">vVar</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xq��8��text/sbasic/shared/03132400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CreateObject Function [Runtime]</title><filename>/text/sbasic/shared/03132400.xhp</filename></topic></meta><body><section id="createobject"><bookmark branch="index" id="bm_id659810"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03132400.xhp">CreateObject Function [Runtime]</link></paragraph><paragraph role="paragraph"><ahelp hid=".">Creates a UNO object. On Windows, can also create OLE objects.</ahelp></paragraph><paragraph role="paragraph">This method creates instances of the type that is passed as parameter.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">oObj</item> <item type="operator">=</item> <item type="identifier">CreateObject</item><item type="operator">(</item> <item type="keyword">type</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Type</item> <item type="identifier">address</item></paragraph><paragraph role="bascode">    <item type="identifier">Name1</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">City</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Type</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">main</item></paragraph><paragraph role="bascode">    <item type="identifier">myaddress</item> <item type="operator">=</item> <item type="identifier">CreateObject</item><item type="operator">(</item><item type="string">"address"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">IsObject</item><item type="operator">(</item><item type="identifier">myaddress</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�u��qqtext/sbasic/shared/03090100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Condition Statements</title><filename>/text/sbasic/shared/03090100.xhp</filename></topic></meta><body><section id="entscheidung"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090100.xhp">Condition Statements</link></paragraph><paragraph role="paragraph">The following statements are based on conditions.</paragraph></section><embed href="text/sbasic/shared/03090101.xhp#ifthenelse"/><embed href="text/sbasic/shared/03090102.xhp#selectcase"/><embed href="text/sbasic/shared/03090103.xhp#iif"/></body></helpdocument>
PK
Mw�XZ��Stext/sbasic/shared/01000000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Programming with $[officename] Basic </title><filename>/text/sbasic/shared/01000000.xhp</filename></topic></meta><body><section id="programmieren"><paragraph role="heading" level="1"><variable id="doc_title"><link href="text/sbasic/shared/01000000.xhp">Programming with $[officename] Basic </link></variable></paragraph><paragraph role="paragraph">This is where you find general information about working with macros and $[officename] Basic.</paragraph></section><embed href="text/sbasic/shared/01010210.xhp#modular"/><embed href="text/sbasic/shared/01020000.xhp#daten"/><embed href="text/sbasic/shared/01030000.xhp#ide"/><embed href="text/sbasic/shared/01040000.xhp#weitere"/></body></helpdocument>
PK
Nw�X������text/sbasic/shared/03080600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Absolute Values</title><filename>/text/sbasic/shared/03080600.xhp</filename></topic></meta><body><section id="absolut"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080600.xhp">Absolute Values</link></paragraph><paragraph role="paragraph">This function returns absolute values.</paragraph></section><embed href="text/sbasic/shared/03080601.xhp#abs"/></body></helpdocument>
PK
Nw�X�sٔ�	�	text/sbasic/shared/03120302.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>LCase Function [Runtime]</title><filename>/text/sbasic/shared/03120302.xhp</filename></topic></meta><body><section id="lcase"><bookmark branch="index" id="bm_id3152363"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120302.xhp">LCase Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts all uppercase letters in a string to lowercase.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03120310.xhp">UCase</link> Function</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">LCase</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that you want to convert.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleLUCase</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="string">"Las Vegas"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">LCase</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">)</item> <item type="comment">' Returns "las vegas"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">UCase</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">)</item> <item type="comment">' Returns "LAS VEGAS"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��
BBtext/sbasic/shared/03080800.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Converting Numbers</title><filename>/text/sbasic/shared/03080800.xhp</filename></topic></meta><body><section id="umwandeln"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080800.xhp">Converting Numbers</link></paragraph><paragraph role="paragraph">The following functions convert numbers from one number format to another.</paragraph></section><embed href="text/sbasic/shared/03080801.xhp#hex"/><embed href="text/sbasic/shared/03080802.xhp#oct"/></body></helpdocument>
PK
Nw�X��d-��text/sbasic/shared/03103000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>UBound Function [Runtime]</title><filename>/text/sbasic/shared/03103000.xhp</filename></topic></meta><body><section id="ubound"><bookmark branch="index" id="bm_id3148538"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103000.xhp">UBound Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the upper boundary of an array.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">UBound</item> <item type="operator">(</item><item type="identifier">ArrayName</item> <item type="identifier">[, Dimension]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>ArrayName:</emph> Name of the array for which you want to determine the upper (<emph>Ubound</emph>) or the lower (<emph>LBound</emph>) boundary.</paragraph><paragraph role="paragraph"><emph>[Dimension]:</emph> Integer that specifies which dimension to return the upper(<emph>Ubound</emph>) or lower (<emph>LBound</emph>) boundary for. If no value is specified, the boundary of the first dimension is returned.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err9"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleUboundLbound</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item><item type="operator">(</item><item type="number">10</item> <item type="keyword">To</item> <item type="number">20</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">LBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">UBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleUboundLbound2</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item><item type="operator">(</item><item type="number">10</item> <item type="keyword">To</item> <item type="number">20</item><item type="operator">,</item><item type="number">5</item> <item type="keyword">To</item> <item type="number">70</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">LBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item> <item type="comment">' Returns 10</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">UBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item> <item type="comment">' Returns 20</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">LBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item><item type="number">2</item><item type="operator">)</item> <item type="comment">' Returns 5</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">UBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item><item type="number">2</item><item type="operator">)</item> <item type="comment">' Returns 70</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�Wn��text/sbasic/shared/03020407.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FileDateTime Function [Runtime]</title><filename>/text/sbasic/shared/03020407.xhp</filename></topic></meta><body><section id="filedatetime"><bookmark branch="index" id="bm_id3153361"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020407.xhp">FileDateTime Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a string that contains the date and the time that a file was created or last modified.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FileDateTime</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that contains an unambiguous (no wildcards) file specification. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph">This function determines the exact time of creation or last modification of a file, returned in the format "MM.DD.YYYY HH.MM.SS".</paragraph><embed href="text/sbasic/shared/00000003.xhp#languageformat"/><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleFileDateTime</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">FileDateTime</item><item type="operator">(</item><item type="string">"C:\autoexec.bat"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��ư��text/sbasic/shared/03030300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>System Date and Time</title><filename>/text/sbasic/shared/03030300.xhp</filename></topic></meta><body><section id="ermitteln"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030300.xhp">System Date and Time</link></paragraph><paragraph role="paragraph">The following functions and statements set or return the system date and time.</paragraph></section><embed href="text/sbasic/shared/03030301.xhp#date"/><embed href="text/sbasic/shared/03030203.xhp#now"/><embed href="text/sbasic/shared/03030302.xhp#time"/><embed href="text/sbasic/shared/03030303.xhp#timer"/></body></helpdocument>
PK
Mw�Xb�3���text/sbasic/shared/03020101.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Close Statement [Runtime]</title><filename>/text/sbasic/shared/03020101.xhp</filename></topic></meta><body><section id="close"><bookmark branch="index" id="bm_id3157896"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020101.xhp">Close Statement [Runtime]</link></paragraph><paragraph role="paragraph">Closes a specified file that was opened with the Open statement.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Close</item> <item type="identifier">FileNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="identifier">[, FileNumber2 As Integer[,...]</item><item type="operator">]</item> </paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> Any integer expression that specifies the number of the data channel that was opened with the <emph>Open</emph> statement.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWorkWithAFile</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sLine</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sMsg</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">sMsg</item> <item type="operator">=</item> <item type="string">""</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"First line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"Another line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">While</item> <item type="keyword">Not</item> <item type="identifier">eof</item><item type="operator">(</item><item type="identifier">iNumber</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="identifier">sLine</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sLine</item> <item type="operator">&lt;</item><item type="operator">&gt;</item><item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="identifier">sMsg</item> <item type="operator">=</item> <item type="identifier">sMsg</item> <item type="operator">&amp;</item> <item type="identifier">sLine</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Wend</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sMsg</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�Xq��lVVtext/sbasic/shared/03020200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>File Input/Output Functions</title><filename>/text/sbasic/shared/03020200.xhp</filename></topic></meta><body><section id="eingabeeinaus"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020200.xhp">File Input/Output Functions</link></paragraph></section><embed href="text/sbasic/shared/03020201.xhp#get"/><embed href="text/sbasic/shared/03020202.xhp#input"/><embed href="text/sbasic/shared/03020203.xhp#lineinput"/><embed href="text/sbasic/shared/03020204.xhp#put"/><embed href="text/sbasic/shared/03020205.xhp#write"/><embed href="text/sbasic/shared/03020302.xhp#loc"/><embed href="text/sbasic/shared/03020304.xhp#seek"/><embed href="text/sbasic/shared/03020301.xhp#eof"/><embed href="text/sbasic/shared/03020303.xhp#lof"/></body></helpdocument>
PK
Nw�X[H�Zggtext/sbasic/shared/03090400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Further Statements</title><filename>/text/sbasic/shared/03090400.xhp</filename></topic></meta><body><section id="weitere"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090400.xhp">Further Statements</link></paragraph><paragraph role="paragraph">Statements that do not belong to any of the other runtime categories are described here.</paragraph></section><embed href="text/sbasic/shared/03090401.xhp#call"/><embed href="text/sbasic/shared/03090402.xhp#choose"/><embed href="text/sbasic/shared/03090403.xhp#declare"/><embed href="text/sbasic/shared/03090404.xhp#end"/><embed href="text/sbasic/shared/03090412.xhp#exit"/><embed href="text/sbasic/shared/03090405.xhp#freelibrary"/><embed href="text/sbasic/shared/03090406.xhp#function"/><embed href="text/sbasic/shared/03090407.xhp#rem"/><embed href="text/sbasic/shared/03090408.xhp#stop"/><embed href="text/sbasic/shared/03090409.xhp#sub"/><embed href="text/sbasic/shared/03090410.xhp#switch"/><embed href="text/sbasic/shared/03090411.xhp#with"/></body></helpdocument>
PK
Nw�XaC����text/sbasic/shared/03030114.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDateFromUnoTime Function [Runtime]</title><filename>/text/sbasic/shared/03030114.xhp</filename></topic></meta><body><section id="cdatefromunotime"><bookmark branch="index" id="bm_id3150620"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030114.xhp">CDateFromUnoTime Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a UNO com.sun.star.util.Time struct to a Date value.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDateFromUnoTime</item><item type="operator">(</item><item type="identifier">aTime</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>aTime:</emph> Time to convert</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCDateFromUnoTime</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item><item type="operator">(</item><item type="identifier">CDateFromUnoTime</item><item type="operator">(</item><item type="identifier">aDatabaseRow</item><item type="operator">.</item><item type="identifier">getTime</item><item type="operator">(</item><item type="number">3</item><item type="operator">)</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item><item type="operator">(</item><item type="identifier">CDateFromUnoTime</item><item type="operator">(</item><item type="identifier">aTimeControl</item><item type="operator">.</item><item type="identifier">Time</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xm��kktext/sbasic/shared/03130000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Other Commands</title><filename>/text/sbasic/shared/03130000.xhp</filename></topic></meta><body><section id="sonstige"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03130000.xhp">Other Commands</link></paragraph><paragraph role="paragraph">This is a list of the functions and the statements that are not included in the other categories.</paragraph></section><embed href="text/sbasic/shared/03130100.xhp#beep"/><embed href="text/sbasic/shared/03130500.xhp#shell"/><embed href="text/sbasic/shared/03130600.xhp#wait"/><embed href="text/sbasic/shared/03130700.xhp#getsystemticks"/><embed href="text/sbasic/shared/03130800.xhp#environ"/><embed href="text/sbasic/shared/03131000.xhp#getsolarversion"/><embed href="text/sbasic/shared/03132100.xhp#getguitype"/><embed href="text/sbasic/shared/03131300.xhp#twipsperpixelx"/><embed href="text/sbasic/shared/03131400.xhp#twipsperpixely"/><embed href="text/sbasic/shared/03131500.xhp#createunostruct"/><embed href="text/sbasic/shared/03131600.xhp#createunoservice"/><embed href="text/sbasic/shared/03131700.xhp#getprocessservicemanager"/><embed href="text/sbasic/shared/03131800.xhp#createunodialog"/><embed href="text/sbasic/shared/03132000.xhp#createunolistener"/><embed href="text/sbasic/shared/03132300.xhp#createunovalue"/><embed href="text/sbasic/shared/03132400.xhp#createobject"/><embed href="text/sbasic/shared/03132500.xhp#getdefaultcontext"/><embed href="text/sbasic/shared/03132200.xhp#thiscomponent"/><embed href="text/sbasic/shared/03131900.xhp#globalscope"/></body></helpdocument>
PK
Nw�X.#߽55text/sbasic/shared/03060300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Imp-Operator [Runtime]</title><filename>/text/sbasic/shared/03060300.xhp</filename></topic></meta><body><section id="imp"><bookmark branch="index" id="bm_id3156024"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03060300.xhp">Imp Operator [Runtime]</link></paragraph><paragraph role="paragraph">Performs a logical implication on two expressions.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="keyword">Imp</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numeric variable that contains the result of the implication.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any expressions that you want to evaluate with the Imp operator.</paragraph><paragraph role="paragraph">If you use the Imp operator in Boolean expressions, False is only returned if the first expression evaluates to True and the second expression to False.</paragraph><paragraph role="paragraph">If you use the Imp operator in bit expressions, a bit is deleted from the result if the corresponding bit is set in the first expression and the corresponding bit is deleted in the second expression.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleImp</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">A</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">B</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">C</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">D</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vOut</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">A</item> <item type="operator">=</item> <item type="number">10</item><item type="parameter">:</item> <item type="identifier">B</item> <item type="operator">=</item> <item type="number">8</item><item type="parameter">:</item> <item type="identifier">C</item> <item type="operator">=</item> <item type="number">6</item><item type="parameter">:</item> <item type="identifier">D</item> <item type="operator">=</item> <item type="identifier">Null</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">A</item> <item type="operator">&gt;</item> <item type="identifier">B</item> <item type="keyword">Imp</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">C</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">A</item> <item type="keyword">Imp</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">C</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">A</item> <item type="operator">&gt;</item> <item type="identifier">B</item> <item type="keyword">Imp</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">D</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="operator">(</item><item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">D</item> <item type="keyword">Imp</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">A</item><item type="operator">)</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">B</item> <item type="keyword">Imp</item> <item type="identifier">A</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��2��	�	text/sbasic/shared/03102700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsNumeric Function [Runtime]</title><filename>/text/sbasic/shared/03102700.xhp</filename></topic></meta><body><section id="isnumeric"><bookmark branch="index" id="bm_id3145136"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102700.xhp">IsNumeric Function [Runtime]</link></paragraph><paragraph role="paragraph">Tests if an expression is a number. If the expression is a <link href="text/sbasic/shared/00000002.xhp#dezimal">number</link>, the function returns True, otherwise the function returns False.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsNumeric</item> <item type="operator">(</item><item type="identifier">Var</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Var:</emph> Any expression that you want to test.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleIsNumeric</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vVar</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">vVar</item> <item type="operator">=</item> <item type="string">"ABC"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">IsNumeric</item><item type="operator">(</item><item type="identifier">vVar</item><item type="operator">)</item> <item type="comment">' Returns False</item></paragraph><paragraph role="bascode">    <item type="identifier">vVar</item> <item type="operator">=</item> <item type="string">"123"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">IsNumeric</item><item type="operator">(</item><item type="identifier">vVar</item><item type="operator">)</item> <item type="comment">' Returns True</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X+GL$33text/sbasic/shared/03030206.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>TimeValue Function [Runtime]</title><filename>/text/sbasic/shared/03030206.xhp</filename></topic></meta><body><section id="timevalue"><bookmark branch="index" id="bm_id3149670"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030206.xhp">TimeValue Function [Runtime]</link></paragraph><paragraph role="paragraph">Calculates a serial time value from the specified hour, minute, and second - parameters passed as strings - that represents the time in a single numeric value. This value can be used to calculate the difference between times.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">TimeValue</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that contains the time that you want to calculate in the format "HH:MM:SS".</paragraph><paragraph role="paragraph">Use the TimeValue function to convert any time into a single value, so that you can calculate time differences.</paragraph><paragraph role="paragraph">This TimeValue function returns the type Variant with VarType 7 (Date), and stores this value internally as a double-precision number between 0 and 0.9999999999.</paragraph><paragraph role="paragraph">As opposed to the DateSerial or the DateValue function, where serial date values result in days relative to a fixed date, you can calculate with the values that are returned by the TimeValue function, but you cannot evaluate them.</paragraph><paragraph role="paragraph">In the TimeSerial function, you can pass individual parameters (hour, minute, second) as separate numeric expressions. For the TimeValue function, however, you can pass a string as a parameter containing the time.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err13"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleTimerValue</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">daDT</item> <item type="keyword">As</item> <item type="keyword">Date</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">a1</item><item type="operator">,</item> <item type="identifier">b1</item><item type="operator">,</item> <item type="identifier">c1</item><item type="operator">,</item> <item type="identifier">a2</item><item type="operator">,</item> <item type="identifier">b2</item><item type="operator">,</item> <item type="identifier">c2</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">a1</item> <item type="operator">=</item> <item type="string">"start time"</item></paragraph><paragraph role="bascode">    <item type="identifier">b1</item> <item type="operator">=</item> <item type="string">"end time"</item></paragraph><paragraph role="bascode">    <item type="identifier">c1</item> <item type="operator">=</item> <item type="string">"total time"</item></paragraph><paragraph role="bascode">    <item type="identifier">a2</item> <item type="operator">=</item> <item type="string">"8:34"</item></paragraph><paragraph role="bascode">    <item type="identifier">b2</item> <item type="operator">=</item> <item type="string">"18:12"</item></paragraph><paragraph role="bascode">    <item type="identifier">daDT</item> <item type="operator">=</item> <item type="identifier">TimeValue</item><item type="operator">(</item><item type="identifier">b2</item><item type="operator">)</item> <item type="unknown">-</item> <item type="identifier">TimeValue</item><item type="operator">(</item><item type="identifier">a2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">c2</item> <item type="operator">=</item> <item type="identifier">a1</item> <item type="operator">&amp;</item> <item type="string">": "</item> <item type="operator">&amp;</item> <item type="identifier">a2</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">c2</item> <item type="operator">=</item> <item type="identifier">c2</item> <item type="operator">&amp;</item> <item type="identifier">b1</item> <item type="operator">&amp;</item> <item type="string">": "</item> <item type="operator">&amp;</item> <item type="identifier">b2</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">c2</item> <item type="operator">=</item> <item type="identifier">c2</item> <item type="operator">&amp;</item> <item type="identifier">c1</item> <item type="operator">&amp;</item> <item type="string">": "</item> <item type="operator">&amp;</item> <item type="identifier">trim</item><item type="operator">(</item><item type="identifier">Str</item><item type="operator">(</item><item type="identifier">Hour</item><item type="operator">(</item><item type="identifier">daDT</item><item type="operator">)</item><item type="operator">)</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">":"</item> <item type="operator">&amp;</item> <item type="identifier">trim</item><item type="operator">(</item><item type="identifier">Str</item><item type="operator">(</item><item type="identifier">Minute</item><item type="operator">(</item><item type="identifier">daDT</item><item type="operator">)</item><item type="operator">)</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">":"</item> <item type="operator">&amp;</item> <item type="identifier">trim</item><item type="operator">(</item><item type="identifier">Str</item><item type="operator">(</item><item type="identifier">Second</item><item type="operator">(</item><item type="identifier">daDT</item><item type="operator">)</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">c2</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xco�p�
�
text/sbasic/shared/03070600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Mod-Operator [Runtime]</title><filename>/text/sbasic/shared/03070600.xhp</filename></topic></meta><body><section id="mod"><bookmark branch="index" id="bm_id3150669"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03070600.xhp">Mod Operator [Runtime]</link></paragraph><paragraph role="paragraph">Returns the integer remainder of a division.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="keyword">MOD</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numeric variable that contains the result of the MOD operation.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any numeric expressions that you want to divide.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleMod</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">10</item> <item type="keyword">Mod</item> <item type="number">2.5</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">10</item> <item type="unknown">/</item> <item type="number">2.5</item> <item type="comment">' returns 4</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">10</item> <item type="keyword">Mod</item> <item type="number">5</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">10</item> <item type="unknown">/</item> <item type="number">5</item> <item type="comment">' returns 2</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">5</item> <item type="keyword">Mod</item> <item type="number">10</item> <item type="comment">' returns 5</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">5</item> <item type="unknown">/</item> <item type="number">10</item> <item type="comment">' returns 0.5</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X;u�� � text/sbasic/shared/05060700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Macro</title><filename>/text/sbasic/shared/05060700.xhp</filename></topic></meta><body><section id="makro"><bookmark branch="index" id="bm_id3153894"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/05060700.xhp">Macro</link></paragraph><paragraph role="paragraph"><ahelp hid=".">Choose the macro that you want to execute when the selected graphic, frame, or OLE object is selected.</ahelp> Depending on the object that is selected, the function is either found on the <emph>Macro</emph> tab of the <emph>Object</emph> dialog, or in the <emph>Assign Macro</emph> dialog.</paragraph></section><paragraph role="heading" level="2">Event</paragraph><paragraph role="paragraph"><ahelp hid="cui/ui/eventassignpage/assignments">Lists the events that are relevant to the macros that are currently assigned to the selected object.</ahelp></paragraph><paragraph role="paragraph">The following table describes the macros and the events that can by linked to objects in your document:</paragraph><table><tablerow><tablecell><paragraph role="paragraph">Event</paragraph></tablecell><tablecell><paragraph role="paragraph">Event trigger</paragraph></tablecell><tablecell><paragraph role="paragraph">OLE object</paragraph></tablecell><tablecell><paragraph role="paragraph">Graphics</paragraph></tablecell><tablecell><paragraph role="paragraph">Frame</paragraph></tablecell><tablecell><paragraph role="paragraph">AutoText</paragraph></tablecell><tablecell><paragraph role="paragraph">ImageMap area</paragraph></tablecell><tablecell><paragraph role="paragraph">Hyperlink</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Click object</paragraph></tablecell><tablecell><paragraph role="paragraph">Object is selected.</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">Mouse over object</paragraph></tablecell><tablecell><paragraph role="paragraph">Mouse moves over the object.</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Trigger Hyperlink</paragraph></tablecell><tablecell><paragraph role="paragraph">Hyperlink assigned to the object is clicked.</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Mouse leaves object </paragraph></tablecell><tablecell><paragraph role="paragraph">Mouse moves off of the object.</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell><paragraph role="paragraph">x</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Graphics load successful </paragraph></tablecell><tablecell><paragraph role="paragraph">Graphics are loaded successfully.</paragraph></tablecell><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">Graphics load terminated</paragraph></tablecell><tablecell><paragraph role="paragraph">Loading of graphics is stopped by the user (for example, when downloading the page).</paragraph></tablecell><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">Graphics load faulty</paragraph></tablecell><tablecell><paragraph role="paragraph">Graphics not successfully loaded, for example, if a graphic was not found.</paragraph></tablecell><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">Input of alpha characters </paragraph></tablecell><tablecell><paragraph role="paragraph">Text is entered from the keyboard.</paragraph></tablecell><tablecell/><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">Input of non-alpha characters </paragraph></tablecell><tablecell><paragraph role="paragraph">Nonprinting characters are entered from the keyboard, for example, tabs and line breaks.</paragraph></tablecell><tablecell/><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">Resize frame</paragraph></tablecell><tablecell><paragraph role="paragraph">Frame is resized with the mouse.</paragraph></tablecell><tablecell/><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">Move frame</paragraph></tablecell><tablecell><paragraph role="paragraph">Frame is moved with the mouse.</paragraph></tablecell><tablecell/><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">Before inserting AutoText</paragraph></tablecell><tablecell><paragraph role="paragraph">Before a text block is inserted.</paragraph></tablecell><tablecell/><tablecell/><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/></tablerow><tablerow><tablecell><paragraph role="paragraph">After inserting AutoText</paragraph></tablecell><tablecell><paragraph role="paragraph">After a text block is inserted.</paragraph></tablecell><tablecell/><tablecell/><tablecell/><tablecell><paragraph role="paragraph">x</paragraph></tablecell><tablecell/><tablecell/></tablerow></table><paragraph role="heading" level="2">Macros</paragraph><paragraph role="paragraph">Choose the macro that you want to execute when the selected event occurs.</paragraph><paragraph role="paragraph">Frames allow you to link events to a function, so that the function can determine if it processes the event or $[officename] Writer.</paragraph><paragraph role="heading" level="3">Category</paragraph><paragraph role="paragraph"><ahelp hid="cui/ui/eventassignpage/libraries">Lists the open $[officename] documents and applications. Click the name of the location where you want to save the macros.</ahelp></paragraph><paragraph role="heading" level="3">Macro name</paragraph><paragraph role="paragraph"><ahelp hid="cui/ui/eventassignpage/macros">Lists the available macros. Click the macro that you want to assign to the selected object.</ahelp></paragraph><paragraph role="heading" level="2">Assign</paragraph><paragraph role="paragraph"><ahelp hid="SFX2_PUSHBUTTON_RID_SFX_TP_MACROASSIGN_PB_ASSIGN">Assigns the selected macro to the specified event.</ahelp> The assigned macro's entries are set after the event.</paragraph><paragraph role="heading" level="2">Remove</paragraph><paragraph role="paragraph"><variable id="aufheb"><ahelp hid="SFX2_PUSHBUTTON_RID_SFX_TP_MACROASSIGN_PB_DELETE">Removes the macro that is assigned to the selected item.</ahelp></variable></paragraph><paragraph role="heading" level="2">Macro selection</paragraph><paragraph role="paragraph"><ahelp hid="SFX2_LISTBOX_RID_SFX_TP_MACROASSIGN_LB_SCRIPTTYPE">Select the macro that you want to assign.</ahelp></paragraph></body></helpdocument>
PK
Nw�X~���##text/sbasic/shared/03090402.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Choose Function [Runtime]</title><filename>/text/sbasic/shared/03090402.xhp</filename></topic></meta><body><section id="choose"><bookmark branch="index" id="bm_id3143271"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090402.xhp">Choose Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a selected value from a list of arguments.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Choose</item> <item type="operator">(</item><item type="identifier">Index</item><item type="operator">,</item> <item type="identifier">Selection1</item><item type="identifier">[, Selection2, ... [,Selection_n]</item><item type="operator">]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Index:</emph> A numeric expression that specifies the value to return.</paragraph><paragraph role="paragraph"><emph>Selection1:</emph> Any expression that contains one of the possible choices.</paragraph><paragraph role="paragraph">The <emph>Choose</emph> function returns a value from the list of expressions based on the index value. If Index = 1, the function returns the first expression in the list, if index i= 2, it returns the second expression, and so on.</paragraph><paragraph role="paragraph">If the index value is less than 1 or greater than the number of expressions listed, the function returns a Null value.</paragraph><paragraph role="paragraph">The following example uses the <emph>Choose</emph> function to select a string from several strings that form a menu:</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleChoose</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sReturn</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sReturn</item> <item type="operator">=</item> <item type="identifier">ChooseMenu</item><item type="operator">(</item><item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sReturn</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">ChooseMenu</item><item type="operator">(</item><item type="identifier">Index</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">ChooseMenu</item> <item type="operator">=</item> <item type="identifier">Choose</item><item type="operator">(</item><item type="identifier">Index</item><item type="operator">,</item> <item type="string">"Quick Format"</item><item type="operator">,</item> <item type="string">"Save Format"</item><item type="operator">,</item> <item type="string">"System Format"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode></body></helpdocument>
PK
Mw�Xr��0��text/sbasic/shared/03010000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Screen I/O Functions</title><filename>/text/sbasic/shared/03010000.xhp</filename></topic></meta><body><section id="bildschirmeinaus"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010000.xhp">Screen I/O Functions</link></paragraph><paragraph role="paragraph">This section describes the Runtime Functions used to call dialogs for the input and output of user entries.</paragraph></section><embed href="text/sbasic/shared/03010100.xhp#ausgabe"/><embed href="text/sbasic/shared/03010200.xhp#eingabe"/><embed href="text/sbasic/shared/03010300.xhp#farbe"/></body></helpdocument>
PK
Nw�X�	�uutext/sbasic/shared/03120306.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Mid Function, Mid Statement [Runtime]</title><filename>/text/sbasic/shared/03120306.xhp</filename></topic></meta><body><section id="mid"><bookmark branch="index" id="bm_id3143268"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120306.xhp">Mid Function, Mid Statement [Runtime]</link></paragraph><paragraph role="paragraph">Returns the specified portion of a string expression (<emph>Mid function</emph>), or replaces the portion of a string expression with another string (<emph>Mid statement</emph>).</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Mid</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">Start</item> <item type="keyword">As</item> <item type="keyword">Long</item> <item type="identifier">[, Length As Long]</item><item type="operator">)</item> <item type="keyword">or</item> <item type="identifier">Mid</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">Start</item> <item type="keyword">As</item> <item type="keyword">Long</item> <item type="operator">,</item> <item type="identifier">Length</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">,</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String (only by Function)</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that you want to modify.</paragraph><paragraph role="paragraph"><emph>Start: </emph>Numeric expression that indicates the character position within the string where the string portion that you want to replace or to return begins. The maximum allowed value is 65535.</paragraph><paragraph role="paragraph"><emph>Length:</emph> Numeric expression that returns the number of characters that you want to replace or return. The maximum allowed value is 65535.</paragraph><paragraph role="paragraph">If the Length parameter in the <emph>Mid function</emph> is omitted, all characters in the string expression from the start position to the end of the string are returned.</paragraph><paragraph role="paragraph">If the Length parameter in the <emph>Mid statement</emph> is less than the length of the text that you want to replace, the text is reduced to the specified length.</paragraph><paragraph role="paragraph"><emph>Text:</emph> The string to replace the string expression (<emph>Mid statement</emph>).</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleUSDate</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sInput</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sUS_date</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sInput</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Please input a date in the international format 'YYYY-MM-DD'"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">Mid</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">6</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="string">"/"</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="identifier">Right</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="string">"/"</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="identifier">Left</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">4</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sUS_date</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�	���text/sbasic/shared/03090411.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>With Statement [Runtime]</title><filename>/text/sbasic/shared/03090411.xhp</filename></topic></meta><body><section id="with"><bookmark branch="index" id="bm_id3153311"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090411.xhp">With Statement [Runtime]</link></paragraph><paragraph role="paragraph">Sets an object as the default object. Unless another object name is declared, all properties and methods refer to the default object until the End With statement is reached.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">With</item> <item type="keyword">Object</item> <item type="identifier">Statement</item> <item type="identifier">block</item> <item type="keyword">End</item> <item type="keyword">With</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">Use <emph>With</emph> and <emph>End With</emph> if you have several properties or methods for a single object.</paragraph></body></helpdocument>
PK
Mw�X��Y
Y
text/sbasic/shared/01010210.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Basics</title><filename>/text/sbasic/shared/01010210.xhp</filename></topic></meta><body><section id="modular"><bookmark branch="index" id="bm_id4488967"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01010210.xhp">Basics</link></paragraph><paragraph role="paragraph">This section provides the fundamentals for working with $[officename] Basic.</paragraph></section><paragraph role="paragraph">$[officename] Basic code is based on subroutines and functions that are specified between <emph>sub...end sub</emph> and <emph>function...end function</emph> sections. Each Sub or Function can call other Subs and Functions. If you take care to write generic code for a Sub or Function, you can probably re-use it in other programs. See also <link href="text/sbasic/shared/01020300.xhp">Procedures and Functions</link>.</paragraph><paragraph role="note">Some restrictions apply for the names of your public variables, subs, and functions. You must not use the same name as one of the modules of the same library.</paragraph><paragraph role="heading" level="2">What is a Sub?</paragraph><paragraph role="paragraph"><emph>Sub</emph> is the short form of <emph>subroutine</emph>, that is used to handle a certain task within a program. Subs are used to split a task into individual procedures. Splitting a program into procedures and sub-procedures enhances readability and reduces the error-proneness. A sub possibly takes some arguments as parameters but does not return any values back to the calling sub or function, for example:</paragraph><paragraph role="code">DoSomethingWithTheValues(MyFirstValue,MySecondValue)</paragraph><paragraph role="heading" level="2">What is a Function?</paragraph><paragraph role="paragraph">A <emph>function</emph> is essentially a sub, which returns a value. You may use a function at the right side of a variable declaration, or at other places where you normally use values, for example:</paragraph><paragraph role="code">MySecondValue = myFunction(MyFirstValue)</paragraph><paragraph role="heading" level="2">Global and local variables</paragraph><paragraph role="paragraph">Global variables are valid for all subs and functions inside a module. They are declared at the beginning of a module before the first sub or function starts.</paragraph><paragraph role="paragraph">Variables that you declare within a sub or function are valid only inside this sub or function. These variables override global variables with the same name and local variables with the same name coming from superordinate subs or functions.</paragraph><paragraph role="heading" level="2">Structuring</paragraph><paragraph role="paragraph">After separating your program into procedures and functions (Subs and Functions), you can save these procedures and functions as files for reuse in other projects. $[officename] Basic supports <link href="text/sbasic/shared/01020500.xhp">Modules and Libraries</link>. Subs and functions are always contained in modules. You can define modules to be global or part of a document. Multiple modules can be combined to a library.</paragraph><paragraph role="paragraph">You can copy or move subs, functions, modules and libraries from one file to another by using the <link href="text/sbasic/shared/01/06130000.xhp">Macro</link> dialog.</paragraph></body></helpdocument>
PK
Nw�XrbUm��text/sbasic/shared/03030107.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDateToIso Function [Runtime]</title><filename>/text/sbasic/shared/03030107.xhp</filename></topic></meta><body><section id="cdatetoiso"><bookmark branch="index" id="bm_id3150620"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030107.xhp">CDateToIso Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the date in ISO format from a serial date number that is generated by the DateSerial or the DateValue function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDateToIso</item><item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Integer that contains the serial date number.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCDateToIso</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">CDateToIso</item><item type="operator">(</item><item type="identifier">Now</item><item type="operator">)</item> <item type="operator">,</item><item type="number">64</item><item type="operator">,</item><item type="string">"ISO Date"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�值"#"#text/sbasic/shared/03132000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CreateUnoListener Function [Runtime]</title><filename>/text/sbasic/shared/03132000.xhp</filename></topic></meta><body><section id="createunolistener"><bookmark branch="index" id="bm_id3155150"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03132000.xhp">CreateUnoListener Function [Runtime]</link></paragraph><paragraph role="paragraph">Creates a Listener instance.</paragraph></section><paragraph role="paragraph">Many Uno interfaces let you register listeners on a special listener interface. This allows you to listen for specific events and call up the appropriate listener method. The CreateUnoListener function waits for the called listener interface and then passes the interface an object that the interface supports. This object is then passed to the method to register the listener.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">oListener</item> <item type="operator">=</item> <item type="identifier">CreateUnoListener</item><item type="operator">(</item> <item type="identifier">Prefixname</item><item type="operator">,</item> <item type="identifier">ListenerInterfaceName</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">The following example is based on a Basic library object.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">oListener</item></paragraph><paragraph role="bascode"><item type="identifier">oListener</item> <item type="operator">=</item> <item type="identifier">CreateUnoListener</item><item type="operator">(</item> <item type="string">"ContListener_"</item><item type="operator">,</item><item type="string">"com.sun.star.container.XContainerListener"</item> <item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">The CreateUnoListener method requires two parameters. The first is a prefix and is explained in detail below. The second parameter is the fully qualified name of the Listener interface that you want to use.</paragraph><paragraph role="paragraph">The Listener must then be added to the Broadcaster Object. This is done by calling the appropriate method for adding a Listener. These methods always follow the pattern "addFooListener", where "Foo" is the Listener Interface Type, without the 'X'. In this example, the addContainerListener method is called to register the XContainerListener:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">oLib</item></paragraph><paragraph role="bascode"><item type="identifier">oLib</item> <item type="operator">=</item> <item type="identifier">BasicLibraries</item><item type="operator">.</item><item type="identifier">Library1</item> <item type="comment">' Library1 must exist!</item></paragraph><paragraph role="bascode"><item type="identifier">oLib</item><item type="operator">.</item><item type="identifier">addContainerListener</item><item type="operator">(</item> <item type="identifier">oListener</item> <item type="operator">)</item> <item type="comment">' Register the listener</item></paragraph></bascode><paragraph role="paragraph">The Listener is now registered. When an event occurs, the corresponding Listener calls the appropriate method from the com.sun.star.container.XContainerListener Interface.</paragraph><paragraph role="paragraph">The prefix calls registered Listeners from Basic-subroutines. The Basic run-time system searches for Basic-subroutines or functions that have the name "PrefixListenerMethode" and calls them when found. Otherwise, a run-time error occurs.</paragraph><paragraph role="paragraph">In this example, the Listener-Interface uses the following methods:</paragraph><list type="unordered"><listitem><paragraph role="listitem">disposing:</paragraph></listitem><listitem><paragraph role="listitem">Listener base interface (com.sun.star.lang.XEventListener): base interface for all Listener Interfaces</paragraph></listitem><listitem><paragraph role="listitem">elementInserted:</paragraph></listitem><listitem><paragraph role="listitem">Method of the com.sun.star.container.XContainerListener interface</paragraph></listitem><listitem><paragraph role="listitem">elementRemoved:</paragraph></listitem><listitem><paragraph role="listitem">Method of the com.sun.star.container.XContainerListener interface</paragraph></listitem><listitem><paragraph role="listitem">elementReplaced:</paragraph></listitem><listitem><paragraph role="listitem">Method of the com.sun.star.container.XContainerListener interface</paragraph></listitem></list><paragraph role="paragraph">In this example, the prefix is ContListener_. The following subroutines must therefore be implemented in Basic:</paragraph><list type="unordered"><listitem><paragraph role="listitem">ContListener_disposing</paragraph></listitem><listitem><paragraph role="listitem">ContListener_elementInserted</paragraph></listitem><listitem><paragraph role="listitem">ContListener_elementRemoved</paragraph></listitem><listitem><paragraph role="listitem">ContListener_elementReplaced</paragraph></listitem></list><paragraph role="paragraph">An event structure type that contains information about an event exists for every Listener type. When a Listener method is called, an instance of this event is passed to the method as a parameter. Basic Listener methods can also call these event objects, so long as the appropriate parameter is passed in the Sub declaration. For example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ContListener_disposing</item><item type="operator">(</item> <item type="identifier">oEvent</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"disposing"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">oEvent</item><item type="operator">.</item><item type="identifier">Dbg_Properties</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ContListener_elementInserted</item><item type="operator">(</item> <item type="identifier">oEvent</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"elementInserted"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">oEvent</item><item type="operator">.</item><item type="identifier">Dbg_Properties</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ContListener_elementRemoved</item><item type="operator">(</item> <item type="identifier">oEvent</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"elementRemoved"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">oEvent</item><item type="operator">.</item><item type="identifier">Dbg_Properties</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ContListener_elementReplaced</item><item type="operator">(</item> <item type="identifier">oEvent</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"elementReplaced"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">oEvent</item><item type="operator">.</item><item type="identifier">Dbg_Properties</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="paragraph">You do not need to include the parameter of an event object if the object is not used:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Minimal implementation of Sub disposing</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ContListener_disposing</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="warning">Listener methods must <emph>always</emph> be implemented to avoid Basic run-time errors.</paragraph></body></helpdocument>
PK
Mw�X@��bZZtext/sbasic/shared/01050100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Watch Window</title><filename>/text/sbasic/shared/01050100.xhp</filename></topic></meta><body><section id="beobachter"><paragraph role="heading" level="1"><link href="text/sbasic/shared/01050100.xhp">Watch Window</link></paragraph><paragraph role="paragraph">The Watch window allows you to observe the value of variables during the execution of a program. Define the variable in the Watch text box. Click on <link href="text/sbasic/shared/02/11080000.xhp">Enable Watch</link> to add the variable to the list box and to display its values.</paragraph></section><bookmark branch="hid/BASCTL_HID_BASICIDE_WATCHWINDOW_EDIT" id="bm_id3125865"/><paragraph role="heading" level="2">Watch</paragraph><paragraph role="paragraph"><ahelp hid="HID_BASICIDE_WATCHWINDOW_EDIT">Enter the name of the variable whose value is to be monitored.</ahelp></paragraph><bookmark branch="hid/BASCTL_HID_BASICIDE_REMOVEWATCH" id="bm_id3163712"/><paragraph role="heading" level="2">Remove Watch</paragraph><paragraph role="paragraph"><ahelp hid="HID_BASICIDE_REMOVEWATCH">Removes the selected variable from the list of watched variables.</ahelp></paragraph><table><tablerow><tablecell><paragraph role="paragraph"><image src="res/baswatr.png"/></paragraph></tablecell><tablecell><paragraph role="paragraph">Remove Watch</paragraph></tablecell></tablerow></table><bookmark branch="hid/BASCTL_HID_BASICIDE_WATCHWINDOW_LIST" id="bm_id3154944"/><paragraph role="heading" level="2">Editing the Value of a Watched Variable</paragraph><paragraph role="paragraph"><ahelp hid="HID_BASICIDE_WATCHWINDOW_LIST">Displays the list of watched variables. Click twice with a short pause in between on an entry to edit its value.</ahelp> The new value will be taken as the variable's value for the program.</paragraph></body></helpdocument>
PK
Nw�X$6b�

text/sbasic/shared/03020403.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CurDir Function [Runtime]</title><filename>/text/sbasic/shared/03020403.xhp</filename></topic></meta><body><section id="curdir"><bookmark branch="index" id="bm_id3153126"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020403.xhp">CurDir Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a variant string that represents the current path of the specified drive.</paragraph></section><embed href="text/sbasic/shared/03020401.xhp#i30692"/><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CurDir</item> <item type="identifier">[(Text As String)]</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that specifies an existing drive (for example, "C" for the first partition of the first hard drive).</paragraph><paragraph role="paragraph">If no drive is specified or if the drive is a zero-length string (""), CurDir returns the path for the current drive. $[officename] Basic reports an error if the syntax of the drive description is incorrect, the drive does not exist, or if the drive letter occurs after the letter defined in the CONFIG.SYS with the Lastdrive statement.</paragraph><paragraph role="paragraph">This function is not case-sensitive.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err68"/><embed href="text/sbasic/shared/00000003.xhp#err7"/><embed href="text/sbasic/shared/00000003.xhp#err51"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCurDir</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sDir1</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">,</item> <item type="identifier">sDir2</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sDir1</item> <item type="operator">=</item> <item type="string">"c:\Test"</item></paragraph><paragraph role="bascode">    <item type="identifier">sDir2</item> <item type="operator">=</item> <item type="string">"d:\Private"</item></paragraph><paragraph role="bascode">    <item type="identifier">ChDir</item><item type="operator">(</item> <item type="identifier">sDir1</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CurDir</item></paragraph><paragraph role="bascode">    <item type="identifier">ChDir</item><item type="operator">(</item> <item type="identifier">sDir2</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CurDir</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X䜉)��text/sbasic/shared/03103700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Set Statement[Runtime]</title><filename>/text/sbasic/shared/03103700.xhp</filename></topic></meta><body><section id="set"><bookmark branch="index" id="bm_id3154422"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103700.xhp">Set Statement[Runtime]</link></paragraph><paragraph role="paragraph">Sets an object reference on a variable or a Property.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Set</item> <item type="identifier">ObjectVar</item> <item type="operator">=</item> <item type="keyword">Object</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>ObjectVar:</emph> a variable or a property that requires an object reference.</paragraph><paragraph role="paragraph"><emph>Object:</emph> Object that the variable or the property refers to.</paragraph><paragraph role="paragraph"><emph>Nothing</emph> - Assign the <emph>Nothing</emph> object to a variable to remove a previous assignment.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSet</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">oDoc</item> <item type="keyword">As</item> <item type="keyword">Object</item></paragraph><paragraph role="bascode">    <item type="keyword">Set</item> <item type="identifier">oDoc</item> <item type="operator">=</item> <item type="identifier">ActiveWindow</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">oDoc</item><item type="operator">.</item><item type="keyword">Name</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X��9���text/sbasic/shared/03020204.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Put Statement [Runtime]</title><filename>/text/sbasic/shared/03020204.xhp</filename></topic></meta><body><section id="put"><bookmark branch="index" id="bm_id3150360"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020204.xhp">Put Statement [Runtime]</link></paragraph><paragraph role="paragraph">Writes a record to a relative file or a sequence of bytes to a binary file.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03020201.xhp"><item type="literal">Get</item></link> statement</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Put</item> <item type="identifier">[#]</item> <item type="identifier">FileNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">,</item> <item type="identifier">[position]</item><item type="operator">,</item> <item type="identifier">Variable</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> Any integer expression that defines the file that you want to write to.</paragraph><paragraph role="paragraph"><emph>Position: </emph>For relative files (random access files), the number of the record that you want to write.</paragraph><paragraph role="paragraph">For binary files (binary access), the position of the byte in the file where you want to start writing.</paragraph><paragraph role="paragraph"><emph>Variable:</emph> Name of the variable that you want to write to the file.</paragraph><paragraph role="paragraph">Note for relative files: If the contents of this variable does not match the length of the record that is specified in the <emph>Len</emph> clause of the <emph>Open</emph> statement, the space between the end of the newly written record and the next record is padded with existing data from the file that you are writing to.</paragraph><paragraph role="paragraph">Note for binary files: The contents of the variables are written to the specified position, and the file pointer is inserted directly after the last byte. No space is left between the records.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRandomAccess</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">Variant</item> <item type="comment">' Must be a variant type</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Random</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item> <item type="identifier">Len</item><item type="operator">=</item><item type="number">32</item></paragraph><paragraph role="bascode">    <item type="identifier">Seek</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">1</item> <item type="comment">' Position To start writing</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the first line of text"</item> <item type="comment">' Fill line with text</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the second line of text"</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the third line of text"</item></paragraph><paragraph role="bascode">    <item type="identifier">Seek</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Random</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item> <item type="identifier">Len</item><item type="operator">=</item><item type="number">32</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item><item type="string">"This is new text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">1</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">20</item><item type="operator">,</item><item type="string">"This is the text in record 20"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Lof</item><item type="operator">(</item><item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xµ�*##text/sbasic/shared/03090302.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GoTo Statement [Runtime]</title><filename>/text/sbasic/shared/03090302.xhp</filename></topic></meta><body><section id="goto"><bookmark branch="index" id="bm_id3159413"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090302.xhp">GoTo Statement [Runtime]</link></paragraph><paragraph role="paragraph">Continues program execution within a Sub or Function at the procedure line indicated by a label.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">see</item> <item type="identifier">Parameters</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">Sub/Function</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph"> Label1</paragraph><paragraph role="paragraph"><emph>Label2:</emph></paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">Exit Sub</paragraph><paragraph role="paragraph"><emph>Label1:</emph></paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">GoTo Label2</paragraph><paragraph role="paragraph">End Sub/Function</paragraph><paragraph role="paragraph">Use the GoTo statement to instruct $[officename] Basic to continue program execution at another place within the procedure. The position must be indicated by a label. To set a label, assign a name, and then and end it with a colon (":").</paragraph><paragraph role="warning">You cannot use the GoTo statement to jump out of a Sub or Function.</paragraph><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">see Parameters</paragraph></body></helpdocument>
PK
Nw�X+�v�EEtext/sbasic/shared/03090200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Loops</title><filename>/text/sbasic/shared/03090200.xhp</filename></topic></meta><body><section id="schleifen"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090200.xhp">Loops</link></paragraph><paragraph role="paragraph">The following statements execute loops.</paragraph></section><embed href="text/sbasic/shared/03090201.xhp#doloop"/><embed href="text/sbasic/shared/03090202.xhp#fornext"/><embed href="text/sbasic/shared/03090203.xhp#whilewend"/></body></helpdocument>
PK
Nw�X���66text/sbasic/shared/03030000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Date and Time Functions</title><filename>/text/sbasic/shared/03030000.xhp</filename></topic></meta><body><section id="datumzeit"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030000.xhp">Date and Time Functions</link></paragraph><paragraph role="paragraph">Use the statements and functions described here to perform date and time calculations.</paragraph></section><paragraph role="paragraph"><item type="productname">%PRODUCTNAME</item> Basic lets you calculate time or date differences by converting the time and date values to continuous numeric values. After the difference is calculated, special functions are used to reconvert the values to the standard time or date formats.</paragraph><paragraph role="tip">You can combine date and time values into a single floating-decimal number. Dates are converted to integers, and times to decimal values. <item type="productname">%PRODUCTNAME</item> Basic also supports the variable type Date, which can contain a time specification consisting of both a date and time.</paragraph><embed href="text/sbasic/shared/03030100.xhp#datumswerte"/><embed href="text/sbasic/shared/03030200.xhp#uhrzeiten"/><embed href="text/sbasic/shared/03030300.xhp#ermitteln"/></body></helpdocument>
PK
Nw�X�C��//text/sbasic/shared/03080103.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Sin Function [Runtime]</title><filename>/text/sbasic/shared/03080103.xhp</filename></topic></meta><body><section id="sin"><bookmark branch="index" id="bm_id3153896"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080103.xhp">Sin Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the sine of an angle. The angle is specified in radians. The result lies between -1 and 1.</paragraph></section><paragraph role="paragraph">Using the angle Alpha, the Sin Function returns the ratio of the length of the opposite side of an angle to the length of the hypotenuse in a right-angled triangle.</paragraph><paragraph role="paragraph">Sin(Alpha) = side opposite the angle/hypotenuse</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Sin</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Numeric expression that defines the angle in radians that you want to calculate the sine for.</paragraph><paragraph role="paragraph">To convert degrees to radians, multiply degrees by Pi/180, and to convert radians to degrees, multiply radians by 180/Pi.</paragraph><paragraph role="paragraph">grad=(radiant*180)/pi</paragraph><paragraph role="paragraph">radiant=(grad*pi)/180</paragraph><paragraph role="paragraph">Pi is approximately 3.141593.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' In this example, the following entry is possible for a right-angled triangle:</item></paragraph><paragraph role="bascode"><item type="comment">' The side opposite the angle and the angle (in degrees) to calculate the length of the hypotenuse:</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSine</item></paragraph><paragraph role="bascode"><item type="comment">' Pi = 3.1415926 is a predefined variable</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">d1</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">dAlpha</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode">    <item type="identifier">d1</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the length of the opposite side: "</item><item type="operator">,</item><item type="string">"Opposite Side"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">dAlpha</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the angle Alpha (in degrees): "</item><item type="operator">,</item><item type="string">"Alpha"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"The length of the hypotenuse is"</item><item type="operator">;</item> <item type="operator">(</item><item type="identifier">d1</item> <item type="unknown">/</item> <item type="identifier">sin</item> <item type="operator">(</item><item type="identifier">dAlpha</item> <item type="operator">*</item> <item type="identifier">Pi</item> <item type="unknown">/</item> <item type="number">180</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X#y2$��text/sbasic/shared/03010300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Color Functions</title><filename>/text/sbasic/shared/03010300.xhp</filename></topic></meta><body><section id="farbe"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010300.xhp">Color Functions</link></paragraph><paragraph role="paragraph">This section describes Runtime functions used to define colors.</paragraph></section><embed href="text/sbasic/shared/03010301.xhp#blue"/><embed href="text/sbasic/shared/03010302.xhp#green"/><embed href="text/sbasic/shared/03010303.xhp#red"/><embed href="text/sbasic/shared/03010304.xhp#qbcolor"/><embed href="text/sbasic/shared/03010305.xhp#rgb"/></body></helpdocument>
PK
Mw�X�"etext/sbasic/shared/03020303.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Lof Function [Runtime]</title><filename>/text/sbasic/shared/03020303.xhp</filename></topic></meta><body><section id="lof"><bookmark branch="index" id="bm_id3156024"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020303.xhp">Lof Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the size of an open file in bytes.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Lof</item> <item type="operator">(</item><item type="identifier">FileNumber</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> Any numeric expression that contains the file number that is specified in the Open statement.</paragraph><paragraph role="tip">To obtain the length of a file that is not open, use the <emph>FileLen</emph> function.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err52"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRandomAccess</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">Variant</item> <item type="comment">REM must be a Variant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Random</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item> <item type="identifier">Len</item><item type="operator">=</item><item type="number">32</item></paragraph><paragraph role="bascode">    <item type="identifier">Seek</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">1</item> <item type="comment">REM Position at start</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the first line of text"</item> <item type="comment">REM Fill with text</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the second line of text"</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the third line of text"</item></paragraph><paragraph role="bascode">    <item type="identifier">Seek</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Random</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item> <item type="identifier">Len</item><item type="operator">=</item><item type="number">32</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item><item type="string">"This is a new line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">1</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">20</item><item type="operator">,</item><item type="string">"This is the text in record 20"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Lof</item><item type="operator">(</item><item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xb�22text/sbasic/shared/03120200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Repeating Contents</title><filename>/text/sbasic/shared/03120200.xhp</filename></topic></meta><body><section id="zeichen"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120200.xhp">Repeating Contents</link></paragraph><paragraph role="paragraph">The following functions repeat the contents of strings.</paragraph></section><embed href="text/sbasic/shared/03120201.xhp#space"/><embed href="text/sbasic/shared/03120202.xhp#string"/></body></helpdocument>
PK
Nw�XL���text/sbasic/shared/03090000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Controlling Program Execution</title><filename>/text/sbasic/shared/03090000.xhp</filename></topic></meta><body><section id="programmablauf"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090000.xhp">Controlling Program Execution</link></paragraph><paragraph role="paragraph">The following statements control the execution of a program.</paragraph></section><paragraph role="paragraph">A program generally executes from the first line of code to the last line of code. You can also execute certain procedures within the program according to specific conditions, or repeat a section of the program within a sub-procedure or function. You can use loops to repeat parts of a program as many times as necessary, or until a certain condition is met. These type of control statements are classified as Condition, Loop, or Jump statements.</paragraph><embed href="text/sbasic/shared/03090100.xhp#entscheidung"/><embed href="text/sbasic/shared/03090200.xhp#schleifen"/><embed href="text/sbasic/shared/03090300.xhp#sprung"/><embed href="text/sbasic/shared/03090400.xhp#weitere"/></body></helpdocument>
PK
Nw�XU�I_tttext/sbasic/shared/03050200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Err Function [Runtime]</title><filename>/text/sbasic/shared/03050200.xhp</filename></topic></meta><body><section id="err"><bookmark branch="index" id="bm_id3156343"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03050200.xhp">Err Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns an error code that identifies the error that occurred during program execution.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Err</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">The Err function is used in error-handling routines to determine the error and the corrective action.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleError</item></paragraph><paragraph role="bascode"><item type="keyword">On</item> <item type="keyword">Error</item> <item type="keyword">Goto</item> <item type="identifier">ErrorHandler</item> <item type="comment">REM Set up error handler</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">as</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="comment">REM Error occurs due to non-existent file</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="string">"\file9879.txt"</item> <item type="keyword">for</item> <item type="keyword">Input</item> <item type="keyword">as</item> <item type="unknown">#</item><item type="identifier">iVar</item></paragraph><paragraph role="bascode">    <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iVar</item><item type="operator">,</item> <item type="identifier">sVar</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iVar</item></paragraph><paragraph role="bascode"><item type="keyword">Exit</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"><item type="identifier">ErrorHandler</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"Error "</item> <item type="operator">&amp;</item> <item type="identifier">Err</item> <item type="operator">&amp;</item> <item type="string">": "</item> <item type="operator">&amp;</item> <item type="identifier">Error$</item> <item type="operator">+</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">+</item> <item type="string">"At line : "</item> <item type="operator">+</item> <item type="identifier">Erl</item> <item type="operator">+</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">Now</item> <item type="operator">,</item> <item type="number">16</item> <item type="operator">,</item><item type="string">"an error occurred"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��L3BBtext/sbasic/shared/03090300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Jumps</title><filename>/text/sbasic/shared/03090300.xhp</filename></topic></meta><body><section id="sprung"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090300.xhp">Jumps</link></paragraph><paragraph role="paragraph">The following statements execute jumps.</paragraph></section><embed href="text/sbasic/shared/03090301.xhp#gosubreturn"/><embed href="text/sbasic/shared/03090302.xhp#goto"/><embed href="text/sbasic/shared/03090303.xhp#ongosub"/></body></helpdocument>
PK
Nw�X(3Po

text/sbasic/shared/03020412.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Name Statement [Runtime]</title><filename>/text/sbasic/shared/03020412.xhp</filename></topic></meta><body><section id="name"><bookmark branch="index" id="bm_id3143268"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020412.xhp">Name Statement [Runtime]</link></paragraph><paragraph role="paragraph">Renames an existing file or directory.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Name</item> <item type="identifier">OldName</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="keyword">As</item> <item type="identifier">NewName</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>OldName, NewName:</emph> Any string expression that specifies the file name, including the path. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleReName</item></paragraph><paragraph role="bascode"><item type="keyword">On</item> <item type="keyword">Error</item> <item type="keyword">GoTo</item> <item type="keyword">Error</item></paragraph><paragraph role="bascode"><item type="identifier">FileCopy</item> <item type="string">"c:\autoexec.bat"</item><item type="operator">,</item> <item type="string">"c:\temp\autoexec.sav"</item></paragraph><paragraph role="bascode"><item type="keyword">Name</item> <item type="string">"c:\temp\autoexec.sav"</item> <item type="keyword">As</item> <item type="string">"c:\temp\autoexec.bat"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item></paragraph><paragraph role="bascode"><item type="keyword">Error</item><item type="parameter">:</item></paragraph><paragraph role="bascode"><item type="keyword">If</item> <item type="identifier">err</item> <item type="operator">=</item> <item type="number">58</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"File already exists"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode"><item type="keyword">End</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XE?���text/sbasic/shared/03120303.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Left Function [Runtime]</title><filename>/text/sbasic/shared/03120303.xhp</filename></topic></meta><body><section id="left"><bookmark branch="index" id="bm_id3149346"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120303.xhp">Left Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the number of leftmost characters that you specify of a string expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Left</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">n</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that you want to return the leftmost characters from.</paragraph><paragraph role="paragraph"><emph>n:</emph> Numeric expression that specifies the number of characters that you want to return. If <emph>n</emph> = 0, a zero-length string is returned. The maximum allowed value is 65535.</paragraph><paragraph role="paragraph">The following example converts a date in YYYY.MM.DD format to MM/DD/YYYY format.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleUSDate</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sInput</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sUS_date</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sInput</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Please input a date in the international format 'YYYY-MM-DD'"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">Mid</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">6</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="string">"/"</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="identifier">Right</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="string">"/"</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="identifier">Left</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">4</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sUS_date</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�f4b
b
text/sbasic/shared/03080201.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Exp Function [Runtime]</title><filename>/text/sbasic/shared/03080201.xhp</filename></topic></meta><body><section id="exp"><bookmark branch="index" id="bm_id3150616"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080201.xhp">Exp Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the base of the natural logarithm (e = 2.718282) raised to a power.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Exp</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numeric expression that specifies the power that you want to raise "e" to (the base of natural logarithms). The power must be for both single-precision numbers less than or equal to 88.02969 and double-precision numbers less than or equal to 709.782712893, since $[officename] Basic returns an Overflow error for numbers exceeding these values.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleLogExp</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">dValue</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode">    <item type="keyword">Const</item> <item type="identifier">b1</item><item type="operator">=</item><item type="number">12.345e12</item></paragraph><paragraph role="bascode"><item type="keyword">Const</item> <item type="identifier">b2</item><item type="operator">=</item><item type="number">1.345e34</item></paragraph><paragraph role="bascode">    <item type="identifier">dValue</item><item type="operator">=</item><item type="identifier">Exp</item><item type="operator">(</item> <item type="identifier">Log</item><item type="operator">(</item><item type="identifier">b1</item><item type="operator">)</item><item type="operator">+</item><item type="identifier">Log</item><item type="operator">(</item><item type="identifier">b2</item><item type="operator">)</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">dValue</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="operator">(</item><item type="identifier">b1</item><item type="operator">*</item><item type="identifier">b2</item><item type="operator">)</item> <item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Multiplication by logarithm"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X[<��text/sbasic/shared/03020203.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Line Input # Statement [Runtime]</title><filename>/text/sbasic/shared/03020203.xhp</filename></topic></meta><body><section id="lineinput"><bookmark branch="index" id="bm_id3153361"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020203.xhp">Line Input # Statement [Runtime]</link></paragraph><paragraph role="paragraph">Reads strings from a sequential file into a variable.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">FileNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">,</item> <item type="identifier">Var</item> <item type="keyword">As</item> <item type="keyword">String</item> </paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber: </emph>Number of the file that contains the data that you want to read. The file must have been opened in advance with the Open statement using the key word INPUT.</paragraph><paragraph role="paragraph"><emph>var:</emph> The name of the variable that stores the result.</paragraph><paragraph role="paragraph">With the <emph>Line Input#</emph> statement, you can read strings from an open file into a variable. String variables are read line-by-line up to the first carriage return (Asc=13) or linefeed (Asc=10). Line end marks are not included in the resulting string.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWorkWithAFile</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sLine</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sMsg</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"This is a line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"This is another line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">While</item> <item type="keyword">Not</item> <item type="identifier">EOF</item><item type="operator">(</item><item type="identifier">iNumber</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="identifier">sLine</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sLine</item> <item type="operator">&lt;</item><item type="operator">&gt;</item><item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="identifier">sMsg</item> <item type="operator">=</item> <item type="identifier">sMsg</item> <item type="operator">&amp;</item> <item type="identifier">sLine</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Wend</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sMsg</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XHv����text/sbasic/shared/03030130.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DatePart Function [Runtime]</title><filename>/text/sbasic/shared/03030130.xhp</filename></topic></meta><body><section id="datepart"><bookmark branch="index" id="bm_id249946"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030130.xhp">DatePart Function [Runtime]</link></paragraph><paragraph role="paragraph">The DatePart function returns a specified part of a date.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">DatePart</item> <item type="operator">(</item><item type="identifier">Add</item><item type="operator">,</item> <item type="keyword">Date</item> <item type="identifier">[, Week_start [, Year_start]</item><item type="operator">]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">A Variant containing a date.</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Add</emph> - A string expression from the following table, specifying the date interval.</paragraph><embed href="text/sbasic/shared/03030110.xhp#datetable"/><paragraph role="paragraph"><emph>Date</emph> - The date from which the result is calculated.</paragraph><embed href="text/sbasic/shared/03030120.xhp#weekyear"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">example_datepart</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">DatePart</item><item type="operator">(</item><item type="string">"ww"</item><item type="operator">,</item> <item type="string">"12/31/2005"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XH�~�text/sbasic/shared/03132300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CreateUnoValue Function [Runtime]</title><filename>/text/sbasic/shared/03132300.xhp</filename></topic></meta><body><section id="createunovalue"><bookmark branch="index" id="bm_id3150682"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03132300.xhp">CreateUnoValue Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns an object that represents a strictly typed value referring to the Uno type system. </paragraph></section><paragraph role="paragraph">This object is automatically converted to an Any of the corresponding type when passed to Uno. The type must be specified by its fully qualified Uno type name.</paragraph><paragraph role="note">The $[officename] API frequently uses the Any type. It is the counterpart of the Variant type known from other environments. The Any type holds one arbitrary Uno type and is used in generic Uno interfaces.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">oUnoValue</item> <item type="operator">=</item> <item type="identifier">CreateUnoValue</item><item type="operator">(</item> <item type="string">"[]byte"</item><item type="operator">,</item> <item type="identifier">MyBasicValue</item> <item type="operator">)</item> <item type="keyword">to</item> <item type="keyword">get</item> <item type="identifier">a</item> <item type="keyword">byte</item> <item type="identifier">sequence</item><item type="operator">.</item></paragraph></bascode><paragraph role="paragraph">If CreateUnoValue cannot be converted to the specified Uno type, and error occurs. For the conversion, the TypeConverter service is used.</paragraph><paragraph role="paragraph">This function is intended for use in situations where the default Basic to Uno type converting mechanism is insufficient. This can happen when you try to access generic Any based interfaces, such as XPropertySet::setPropertyValue( Name, Value ) or X???Container::insertBy???( ???, Value ), from $[officename] Basic. The Basic runtime does not recognize these types as they are only defined in the corresponding service.</paragraph><paragraph role="paragraph">In this type of situation, $[officename] Basic chooses the best matching type for the Basic type that you want to convert. However, if the wrong type is selected, an error occurs. You use the CreateUnoValue() function to create a value for the unknown Uno type.</paragraph><paragraph role="paragraph">You can also use this function to pass non-Any values, but this is not recommend. If Basic already knows the target type, using the CreateUnoValue() function will only lead to additional converting operations that slow down the Basic execution.</paragraph></body></helpdocument>
PK
Nw�X�@�&��text/sbasic/shared/03104500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsUnoStruct Function [Runtime]</title><filename>/text/sbasic/shared/03104500.xhp</filename></topic></meta><body><section id="isunostruct"><bookmark branch="index" id="bm_id3146117"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03104500.xhp">IsUnoStruct Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns True if the given object is a Uno struct.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsUnoStruct</item><item type="operator">(</item> <item type="identifier">Uno</item> <item type="keyword">type</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">Uno type : A UnoObject</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Main</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">bIsStruct</item></paragraph><paragraph role="bascode"><item type="comment">' Instantiate a service</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">oSimpleFileAccess</item></paragraph><paragraph role="bascode"><item type="identifier">oSimpleFileAccess</item> <item type="operator">=</item> <item type="identifier">CreateUnoService</item><item type="operator">(</item> <item type="string">"com.sun.star.ucb.SimpleFileAccess"</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="identifier">bIsStruct</item> <item type="operator">=</item> <item type="identifier">IsUnoStruct</item><item type="operator">(</item> <item type="identifier">oSimpleFileAccess</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="identifier">MsgBox</item> <item type="identifier">bIsStruct</item> <item type="comment">' Displays False because oSimpleFileAccess Is NO struct</item></paragraph><paragraph role="bascode"><item type="comment">' Instantiate a Property struct</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aProperty</item> <item type="keyword">As</item> <item type="keyword">New</item> <item type="identifier">com</item><item type="operator">.</item><item type="identifier">sun</item><item type="operator">.</item><item type="identifier">star</item><item type="operator">.</item><item type="identifier">beans</item><item type="operator">.</item><item type="keyword">Property</item></paragraph><paragraph role="bascode"><item type="identifier">bIsStruct</item> <item type="operator">=</item> <item type="identifier">IsUnoStruct</item><item type="operator">(</item> <item type="identifier">aProperty</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="identifier">MsgBox</item> <item type="identifier">bIsStruct</item> <item type="comment">' Displays True because aProperty is a struct</item></paragraph><paragraph role="bascode"><item type="identifier">bIsStruct</item> <item type="operator">=</item> <item type="identifier">IsUnoStruct</item><item type="operator">(</item> <item type="number">42</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="identifier">MsgBox</item> <item type="identifier">bIsStruct</item> <item type="comment">' Displays False because 42 is NO struct</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XGeuFtext/sbasic/shared/main0211.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Macro Toolbar</title><filename>/text/sbasic/shared/main0211.xhp</filename></topic></meta><body><section id="makro"><bookmark id="bm_id3150543" branch="index"/><bookmark branch="hid/.uno:MacroBarVisible" id="bm_id3153539"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/main0211.xhp">Macro Toolbar</link></paragraph><paragraph role="paragraph"><ahelp visibility="visible" hid=".uno:MacroBarVisible">The <emph>Macro Toolbar </emph>contains commands to create, edit, and run macros.</ahelp></paragraph></section><embed href="text/sbasic/shared/02/11010000.xhp#bibliothek"/><embed href="text/sbasic/shared/02/11010000.xhp#sybibliothek"/><embed href="text/sbasic/shared/02/11020000.xhp#uebersetzen"/><embed href="text/sbasic/shared/02/11020000.xhp#syuebersetzen"/><embed href="text/sbasic/shared/02/11030000.xhp#ausfuehren"/><embed href="text/sbasic/shared/02/11030000.xhp#syausfuehren"/><embed href="text/sbasic/shared/02/11040000.xhp#anhalten"/><embed href="text/sbasic/shared/02/11040000.xhp#syanhalten"/><embed href="text/sbasic/shared/02/11060000.xhp#prozedurschritt"/><embed href="text/sbasic/shared/02/11060000.xhp#syprozedurschritt"/><embed href="text/sbasic/shared/02/11050000.xhp#einzelschritt"/><embed href="text/sbasic/shared/02/11050000.xhp#syeinzelschritt"/><embed href="text/sbasic/shared/02/11160000.xhp#ruecksprung"/><embed href="text/sbasic/shared/02/11160000.xhp#syruecksprung"/><embed href="text/sbasic/shared/02/11070000.xhp#haltepunkt"/><embed href="text/sbasic/shared/02/11070000.xhp#syhaltepunkt"/><embed href="text/sbasic/shared/02/11170000.xhp#manage_breakpoints"/><embed href="text/sbasic/shared/02/11170000.xhp#sybreakpoints"/><embed href="text/sbasic/shared/02/11080000.xhp#beobachter"/><embed href="text/sbasic/shared/02/11080000.xhp#sybeobachter"/><embed href="text/sbasic/shared/02/11090000.xhp#okatalog"/><embed href="text/sbasic/shared/02/11090000.xhp#syobjektkatalog"/><embed href="text/sbasic/shared/02/11100000.xhp#makros"/><embed href="text/sbasic/shared/02/11100000.xhp#symakros"/><embed href="text/sbasic/shared/02/11110000.xhp#module"/><embed href="text/sbasic/shared/02/11110000.xhp#symodule"/><embed href="text/sbasic/shared/02/11120000.xhp#klammer"/><embed href="text/sbasic/shared/02/11120000.xhp#syklammer"/><embed href="text/sbasic/shared/02/11140000.xhp#laden"/><embed href="text/sbasic/shared/02/11140000.xhp#syladen"/><embed href="text/sbasic/shared/02/11150000.xhp#speichern"/><embed href="text/sbasic/shared/02/11150000.xhp#syspeichern"/><embed href="text/sbasic/shared/02/11180000.xhp#import"/><embed href="text/sbasic/shared/02/11180000.xhp#syimport"/><embed href="text/sbasic/shared/02/11190000.xhp#export"/><embed href="text/sbasic/shared/02/11190000.xhp#syexport"/></body></helpdocument>
PK
Nw�X��	k
k
!text/sbasic/shared/code-stubs.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>BasicCodeStubs</title><filename>/text/sbasic/shared/code-stubs.xhp</filename></topic></meta><body><section id="BasicIDEOption01"><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aPicker</item> <item type="keyword">As</item> <item type="identifier">com</item><item type="operator">.</item><item type="identifier">sun</item><item type="operator">.</item><item type="identifier">star</item><item type="operator">.</item><item type="identifier">ui</item><item type="operator">.</item><item type="identifier">dialogs</item><item type="operator">.</item><item type="identifier">XFilePicker</item></paragraph></bascode></section><section id="BasicIDEOption02"><bascode><paragraph role="bascode"><item type="identifier">aPicker</item><item type="operator">.</item><item type="identifier">getDisplayDirectory</item><item type="operator">(</item><item type="operator">)</item></paragraph></bascode></section><section id="BasicIDEOption03"><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">intVar</item> <item type="keyword">as</item> <item type="keyword">Integer</item></paragraph></bascode></section><section id="BasicIDEOption04"><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Some_Calc_UNO_Types</item></paragraph><paragraph role="bascode"><item type="comment">REM A spreadsheet object</item></paragraph><paragraph role="bascode">    <item type="keyword">Dim</item> <item type="identifier">oSheet</item> <item type="keyword">As</item> <item type="identifier">com</item><item type="operator">.</item><item type="identifier">sun</item><item type="operator">.</item><item type="identifier">star</item><item type="operator">.</item><item type="identifier">sheet</item><item type="operator">.</item><item type="identifier">XSpreadsheet</item></paragraph><paragraph role="bascode">    <item type="identifier">oSheet</item> <item type="operator">=</item> <item type="identifier">ThisComponent</item><item type="operator">.</item><item type="identifier">getSheets</item><item type="operator">(</item><item type="operator">)</item><item type="operator">.</item><item type="identifier">getByIndex</item><item type="operator">(</item><item type="number">0</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="comment">REM A cell object</item></paragraph><paragraph role="bascode">    <item type="keyword">Dim</item> <item type="identifier">oCell</item> <item type="keyword">As</item> <item type="identifier">com</item><item type="operator">.</item><item type="identifier">sun</item><item type="operator">.</item><item type="identifier">star</item><item type="operator">.</item><item type="identifier">table</item><item type="operator">.</item><item type="identifier">XCell</item></paragraph><paragraph role="bascode">    <item type="identifier">oCell</item> <item type="operator">=</item> <item type="identifier">oSheet</item><item type="operator">.</item><item type="identifier">getCellByPosition</item><item type="operator">(</item><item type="number">0</item><item type="operator">,</item><item type="number">0</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></section></body></helpdocument>
PK
Nw�X�|�H�
�
text/sbasic/shared/03101300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefDate Statement [Runtime]</title><filename>/text/sbasic/shared/03101300.xhp</filename></topic></meta><body><section id="defdate"><bookmark branch="index" id="bm_id3150504"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101300.xhp">DefDate Statement [Runtime]</link></paragraph><paragraph role="paragraph">If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Default variable type</paragraph><paragraph role="paragraph"><emph>DefDate:</emph> Date</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definitions for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefDate</item></paragraph><paragraph role="bascode">    <item type="identifier">tDate</item><item type="operator">=</item><item type="keyword">Date</item> <item type="comment">' tDate is an implicit date variable</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�bSNtext/sbasic/shared/03120308.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>RSet Statement [Runtime]</title><filename>/text/sbasic/shared/03120308.xhp</filename></topic></meta><body><section id="rset"><bookmark branch="index" id="bm_id3153345"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120308.xhp">RSet Statement [Runtime]</link></paragraph><paragraph role="paragraph">Right-aligns a string within a string variable, or copies a user-defined variable type into another.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">RSet</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">=</item> <item type="keyword">Text</item> <item type="keyword">or</item> <item type="keyword">RSet</item> <item type="identifier">Variable1</item> <item type="operator">=</item> <item type="identifier">Variable2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string variable.</paragraph><paragraph role="paragraph"><emph>Text</emph>: String that you want to right-align in the string variable.</paragraph><paragraph role="paragraph"><emph>Variable1:</emph> User-defined variable that is the target for the copied variable.</paragraph><paragraph role="paragraph"><emph>Variable2:</emph> User-defined variable that you want to copy to another variable.</paragraph><paragraph role="paragraph">If the string is shorter than the string variable, <emph>RSet</emph> aligns the string to the right within the string variable. Any remaining characters in the string variable are replaced with spaces. If the string is longer than the string variable, characters exceeding the length of the variable are truncated, and only the remaining characters are right-aligned within the string variable.</paragraph><paragraph role="paragraph">You can also use the <emph>RSet statement</emph> to assign variables of one user-defined type to another.</paragraph><paragraph role="paragraph">The following example uses the <emph>RSet</emph> and <emph>LSet</emph> statements to modify the left and right alignment of a string.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRLSet</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sExpr</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">40</item><item type="operator">,</item><item type="string">"*"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sExpr</item> <item type="operator">=</item> <item type="string">"SBX"</item></paragraph><paragraph role="bascode">    <item type="comment">' Right-align "SBX" in a 40-character string</item></paragraph><paragraph role="bascode">    <item type="comment">' Replace asterisks with spaces</item></paragraph><paragraph role="bascode">    <item type="keyword">RSet</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">sExpr</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"&gt;"</item><item type="operator">;</item> <item type="identifier">sVar</item><item type="operator">;</item> <item type="string">"&lt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">5</item><item type="operator">,</item><item type="string">"*"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sExpr</item> <item type="operator">=</item> <item type="string">"123457896"</item></paragraph><paragraph role="bascode">    <item type="keyword">RSet</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">sExpr</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"&gt;"</item><item type="operator">;</item> <item type="identifier">sVar</item><item type="operator">;</item> <item type="string">"&lt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">40</item><item type="operator">,</item><item type="string">"*"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sExpr</item> <item type="operator">=</item> <item type="string">"SBX"</item></paragraph><paragraph role="bascode">    <item type="comment">' Left-align "SBX" in a 40-character string</item></paragraph><paragraph role="bascode">    <item type="keyword">LSet</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">sExpr</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"&gt;"</item><item type="operator">;</item> <item type="identifier">sVar</item><item type="operator">;</item> <item type="string">"&lt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">5</item><item type="operator">,</item><item type="string">"*"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sExpr</item> <item type="operator">=</item> <item type="string">"123456789"</item></paragraph><paragraph role="bascode">    <item type="keyword">LSet</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">sExpr</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"&gt;"</item><item type="operator">;</item> <item type="identifier">sVar</item><item type="operator">;</item> <item type="string">"&lt;"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�����text/sbasic/shared/03030204.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Second Function [Runtime]</title><filename>/text/sbasic/shared/03030204.xhp</filename></topic></meta><body><section id="second"><bookmark branch="index" id="bm_id3153346"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030204.xhp">Second Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns an integer that represents the seconds of the serial time number that is generated by the TimeSerial or the TimeValue function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Second</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Numeric expression that contains the serial time number that is used to calculate the number of seconds.</paragraph><paragraph role="paragraph">This function is the opposite of the <emph>TimeSerial </emph>function. It returns the seconds of a serial time value that is generated by the <emph>TimeSerial</emph> or <emph>TimeValue </emph>functions. For example, the expression:</paragraph><paragraph role="paragraph">Print Second(TimeSerial(12,30,41))</paragraph><paragraph role="paragraph">returns the value 41.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSecond</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"The exact second of the current time is "</item><item type="operator">&amp;</item> <item type="identifier">Second</item><item type="operator">(</item> <item type="identifier">Now</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X5�Z�xxtext/sbasic/shared/03103450.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Global Statement [Runtime]</title><filename>/text/sbasic/shared/03103450.xhp</filename></topic></meta><body><section id="global"><bookmark branch="index" id="bm_id3159201"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103450.xhp">Global Statement [Runtime]</link></paragraph><paragraph role="paragraph">Dimensions a variable or an array at the global level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules for the current session.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Global</item> <item type="identifier">VarName</item><item type="identifier">[(start To end)]</item> <item type="identifier">[As VarType]</item><item type="identifier">[, VarName2[(start To end)]</item> <item type="identifier">[As VarType]</item><item type="identifier">[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Global</item> <item type="identifier">iGlobalVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleGlobal</item></paragraph><paragraph role="bascode">    <item type="identifier">iGlobalVar</item> <item type="operator">=</item> <item type="identifier">iGlobalVar</item> <item type="operator">+</item> <item type="number">1</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">iGlobalVar</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�+lXXtext/sbasic/shared/03020402.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>ChDrive Statement [Runtime]</title><filename>/text/sbasic/shared/03020402.xhp</filename></topic></meta><body><section id="chdrive"><bookmark branch="index" id="bm_id3145068"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020402.xhp">ChDrive Statement [Runtime]</link></paragraph><paragraph role="paragraph">Changes the current drive.</paragraph></section><embed href="text/sbasic/shared/03020401.xhp#i30692"/><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">ChDrive</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that contains the drive letter of the new drive. If you want, you can use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph">The drive must be assigned a capital letter. Under Windows, the letter that you assign the drive is restricted by the settings in LASTDRV. If the drive argument is a multiple-character string, only the first letter is relevant. If you attempt to access a non-existent drive, an error occurs that you can respond to with the OnError statement.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err68"/><embed href="text/sbasic/shared/00000003.xhp#err76"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleChDrive</item></paragraph><paragraph role="bascode">    <item type="identifier">ChDrive</item> <item type="string">"D"</item> <item type="comment">' Only possible if a drive 'D' exists.</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�XҚAC��text/sbasic/shared/03010101.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>MsgBox Statement [Runtime]</title><filename>/text/sbasic/shared/03010101.xhp</filename></topic></meta><body><section id="msgbox"><bookmark branch="index" id="bm_id1807916"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010101.xhp">MsgBox Statement [Runtime]</link></paragraph><paragraph role="paragraph">Displays a dialog box containing a message.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">MsgBox</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="identifier">[,Type As Integer [,Dialogtitle As String]</item><item type="operator">]</item> <item type="operator">(</item><item type="keyword">As</item> <item type="identifier">Statement</item><item type="operator">)</item> <item type="keyword">or</item> <item type="identifier">MsgBox</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="identifier">[,Type As Integer [,Dialogtitle As String]</item><item type="operator">]</item><item type="operator">)</item> <item type="operator">(</item><item type="keyword">As</item> <item type="keyword">Function</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>Text</emph>: String expression displayed as a message in the dialog box. Line breaks can be inserted with Chr$(13).</paragraph><paragraph role="paragraph"><emph>DialogTitle</emph>: String expression displayed in the title bar of the dialog. If omitted, the title bar displays the name of the respective application.</paragraph><paragraph role="paragraph"><emph>Type</emph>: Any integer expression that specifies the dialog type, as well as the number and type of buttons to display, and the icon type. <emph>Type</emph> represents a combination of bit patterns, that is, a combination of elements can be defined by adding their respective values:</paragraph><paragraph role="paragraph">0 : Display OK button only.</paragraph><paragraph role="paragraph">1 : Display OK and Cancel buttons.</paragraph><paragraph role="paragraph">2 : Display Abort, Retry, and Ignore buttons.</paragraph><paragraph role="paragraph">3 : Display Yes, No and Cancel buttons.</paragraph><paragraph role="paragraph">4 : Display Yes and No buttons.</paragraph><paragraph role="paragraph">5 : Display Retry and Cancel buttons.</paragraph><paragraph role="paragraph">16 : Add the Stop icon to the dialog.</paragraph><paragraph role="paragraph">32 : Add the Question icon to the dialog.</paragraph><paragraph role="paragraph">48 : Add the Exclamation icon to the dialog.</paragraph><paragraph role="paragraph">64 : Add the Information icon to the dialog.</paragraph><paragraph role="paragraph">128 : First button in the dialog as default button.</paragraph><paragraph role="paragraph">256 : Second button in the dialog as default button.</paragraph><paragraph role="paragraph">512 : Third button in the dialog as default button.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleMsgBox</item></paragraph><paragraph role="bascode">    <item type="keyword">Const</item> <item type="identifier">sText1</item> <item type="operator">=</item> <item type="string">"An unexpected error occurred."</item></paragraph><paragraph role="bascode">    <item type="keyword">Const</item> <item type="identifier">sText2</item> <item type="operator">=</item> <item type="string">"The program execution will continue, however."</item></paragraph><paragraph role="bascode">    <item type="keyword">Const</item> <item type="identifier">sText3</item> <item type="operator">=</item> <item type="string">"Error"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item><item type="operator">(</item><item type="identifier">sText1</item> <item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">sText2</item><item type="operator">,</item><item type="number">16</item><item type="operator">,</item><item type="identifier">sText3</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X\�G

text/sbasic/shared/03090409.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Sub Statement [Runtime]</title><filename>/text/sbasic/shared/03090409.xhp</filename></topic></meta><body><section id="sub"><bookmark branch="index" id="bm_id3147226"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090409.xhp">Sub Statement [Runtime]</link></paragraph><paragraph role="paragraph">Defines a subroutine.</paragraph></section><paragraph role="heading" level="2">Syntax</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="keyword">Name</item><item type="identifier">[(VarName1 [As Type]</item><item type="identifier">[, VarName2 [As Type]</item><item type="identifier">[,...]</item><item type="operator">]</item><item type="operator">)</item><item type="operator">]</item></paragraph><paragraph role="bascode"><item type="identifier">statement</item> <item type="identifier">block</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Name:</emph> Name of the subroutine .</paragraph><paragraph role="paragraph"><emph>VarName: </emph>Parameter that you want to pass to the subroutine.</paragraph><paragraph role="paragraph"><emph>Type:</emph> Type-declaration key word.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Example</item></paragraph><paragraph role="bascode">    <item type="comment">' some statements</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XG+�Lj�text/sbasic/shared/03030115.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDateToUnoDateTime Function [Runtime]</title><filename>/text/sbasic/shared/03030115.xhp</filename></topic></meta><body><section id="cdatetounodatetime"><bookmark branch="index" id="bm_id3150620"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030115.xhp">CDateToUnoDateTime Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the time part of the date as a UNO com.sun.star.util.DateTime struct.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDateToUnoDateTime</item><item type="operator">(</item><item type="identifier">aDate</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">com.sun.star.util.DateTime</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>aDate:</emph> Date value to convert</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCDateToUnoDateTime</item></paragraph><paragraph role="bascode">    <item type="identifier">aDatabaseRow</item><item type="operator">.</item><item type="identifier">updateTimestamp</item><item type="operator">(</item><item type="number">3</item><item type="operator">,</item> <item type="identifier">CDateToUnoDateTime</item><item type="operator">(</item><item type="identifier">Now</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��s)''text/sbasic/shared/03131300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>TwipsPerPixelX Function [Runtime]</title><filename>/text/sbasic/shared/03131300.xhp</filename></topic></meta><body><section id="twipsperpixelx"><bookmark branch="index" id="bm_id3153539"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03131300.xhp">TwipsPerPixelX Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the number of twips that represent the width of a pixel.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">n</item> <item type="operator">=</item> <item type="identifier">TwipsPerPixelX</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExamplePixelTwips</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">TwipsPerPixelX</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" Twips * "</item> <item type="operator">&amp;</item> <item type="identifier">TwipsPerPixelY</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" Twips"</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Pixel size"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X2j:P��text/sbasic/shared/03090101.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>If...Then...Else Statement [Runtime]</title><filename>/text/sbasic/shared/03090101.xhp</filename></topic></meta><body><section id="ifthenelse"><bookmark branch="index" id="bm_id3154422"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090101.xhp">If...Then...Else Statement [Runtime]</link></paragraph><paragraph role="paragraph">Defines one or more statement blocks that you only want to execute if a given condition is True.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">If</item> <item type="identifier">condition</item><item type="operator">=</item><item type="identifier">true</item> <item type="keyword">Then</item> <item type="identifier">Statement</item> <item type="identifier">block</item> <item type="identifier">[ElseIf condition=true Then]</item> <item type="identifier">Statement</item> <item type="identifier">block</item> <item type="identifier">[Else]</item> <item type="identifier">Statement</item> <item type="identifier">block</item> <item type="keyword">EndIf</item></paragraph></bascode><paragraph role="paragraph">Instead of Else If you can write ElseIf, instead of End If you can write EndIf.</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">The <emph>If...Then</emph> statement executes program blocks depending on given conditions. When $[officename] Basic encounters an <emph>If</emph> statement, the condition is tested. If the condition is True, all subsequent statements up to the next <emph>Else</emph> or <emph>ElseIf</emph> statement are executed. If the condition is False, and an <emph>ElseIf</emph> statement follows, $[officename] Basic tests the next condition and executes the following statements if the condition is True. If False, the program continues either with the next <emph>ElseIf</emph> or <emph>Else</emph> statement. Statements following <emph>Else</emph> are executed only if none of the previously tested conditions were True. After all conditions are evaluated, and the corresponding statements executed, the program continues with the statement following <emph>EndIf</emph>.</paragraph><paragraph role="paragraph">You can nest multiple <emph>If...Then</emph> statements.</paragraph><paragraph role="paragraph"><emph>Else</emph> and <emph>ElseIf</emph> statements are optional.</paragraph><paragraph role="warning">You can use <emph>GoTo</emph> and <emph>GoSub</emph> to jump out of an <emph>If...Then</emph> block, but not to jump into an <emph>If...Then</emph> structure.</paragraph><paragraph role="paragraph">The following example enables you to enter the expiration date of a product, and determines if the expiration date has passed.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleIfThenDate</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sDate</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sToday</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sDate</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the expiration date (MM.DD.YYYY)"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sDate</item> <item type="operator">=</item> <item type="identifier">Right$</item><item type="operator">(</item><item type="identifier">sDate</item><item type="operator">,</item> <item type="number">4</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">Mid$</item><item type="operator">(</item><item type="identifier">sDate</item><item type="operator">,</item> <item type="number">4</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">Left$</item><item type="operator">(</item><item type="identifier">sDate</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sToday</item> <item type="operator">=</item> <item type="identifier">Date$</item></paragraph><paragraph role="bascode">    <item type="identifier">sToday</item> <item type="operator">=</item> <item type="identifier">Right$</item><item type="operator">(</item><item type="identifier">sToday</item><item type="operator">,</item> <item type="number">4</item><item type="operator">)</item><item type="operator">+</item> <item type="identifier">Mid$</item><item type="operator">(</item><item type="identifier">sToday</item><item type="operator">,</item> <item type="number">4</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">Left$</item><item type="operator">(</item><item type="identifier">sToday</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">sDate</item> <item type="operator">&lt;</item> <item type="identifier">sToday</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">        <item type="identifier">MsgBox</item> <item type="string">"The expiration date has passed"</item></paragraph><paragraph role="bascode">    <item type="keyword">ElseIf</item> <item type="identifier">sDate</item> <item type="operator">&gt;</item> <item type="identifier">sToday</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">        <item type="identifier">MsgBox</item> <item type="string">"The expiration date has not yet passed"</item></paragraph><paragraph role="bascode">    <item type="keyword">Else</item></paragraph><paragraph role="bascode">        <item type="identifier">MsgBox</item> <item type="string">"The expiration date is today"</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X܇]M=+=+text/sbasic/shared/01020300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Using Procedures and Functions</title><filename>/text/sbasic/shared/01020300.xhp</filename></topic></meta><body><section id="prozedur"><bookmark branch="index" id="bm_id3149456"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01020300.xhp">Using Procedures and Functions</link></paragraph><paragraph role="paragraph">The following describes the basic use of procedures and functions in $[officename] Basic.</paragraph></section><paragraph role="note">When you create a new module, $[officename] Basic automatically inserts a SUB called "Main". This default name has nothing to do with the order or the starting point of a $[officename] Basic project. You can also safely rename this SUB.</paragraph><paragraph role="note">Some restrictions apply for the names of your public variables, subs, and functions. You must not use the same name as one of the modules of the same library.</paragraph><paragraph role="paragraph">Procedures (SUBS) and functions (FUNCTIONS) help you maintaining a structured overview by separating a program into logical pieces.</paragraph><paragraph role="paragraph">One benefit of procedures and functions is that, once you have developed a program code containing task components, you can use this code in another project.</paragraph><paragraph role="heading" level="2">Passing Variables to Procedures (SUB) and Functions (FUNCTION)</paragraph><paragraph role="paragraph">Variables can be passed to both procedures and functions. The SUB or FUNCTION must be declared to expect parameters:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">SubName</item><item type="operator">(</item><item type="identifier">Parameter1</item> <item type="keyword">As</item> <item type="keyword">Type</item><item type="operator">,</item> <item type="identifier">Parameter2</item> <item type="keyword">As</item> <item type="keyword">Type</item><item type="operator">,</item><item type="operator">.</item><item type="operator">.</item><item type="operator">.</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="identifier">Program</item> <item type="identifier">code</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="paragraph">The SUB is called using the following syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">SubName</item><item type="operator">(</item><item type="identifier">Value1</item><item type="operator">,</item> <item type="identifier">Value2</item><item type="operator">,</item><item type="operator">.</item><item type="operator">.</item><item type="operator">.</item><item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">The parameters passed to a SUB must fit to those specified in the SUB declaration.</paragraph><paragraph role="paragraph">The same process applies to FUNCTIONS. In addition, functions always return a function result. The result of a function is defined by assigning the return value to the function name:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">FunctionName</item><item type="operator">(</item><item type="identifier">Parameter1</item> <item type="keyword">As</item> <item type="keyword">Type</item><item type="operator">,</item> <item type="identifier">Parameter2</item> <item type="keyword">As</item> <item type="keyword">Type</item><item type="operator">,</item><item type="operator">.</item><item type="operator">.</item><item type="operator">.</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Type</item></paragraph><paragraph role="bascode"><item type="identifier">Program</item> <item type="identifier">code</item></paragraph><paragraph role="bascode"><item type="identifier">FunctionName</item><item type="operator">=</item><item type="identifier">Result</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode><paragraph role="paragraph">The FUNCTION is called using the following syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Variable</item><item type="operator">=</item><item type="identifier">FunctionName</item><item type="operator">(</item><item type="identifier">Parameter1</item><item type="operator">,</item> <item type="identifier">Parameter2</item><item type="operator">,</item><item type="operator">.</item><item type="operator">.</item><item type="operator">.</item><item type="operator">)</item></paragraph></bascode><paragraph role="tip">You can also use the fully qualified name to call a procedure or function:<br/> <item type="literal">Library.Module.Macro()</item> <br/> For example, to call the Autotext macro from the Gimmicks library, use the following command:<br/> <item type="literal">Gimmicks.AutoText.Main()</item> </paragraph><paragraph role="heading" level="2">Passing Variables by Value or Reference</paragraph><paragraph role="paragraph">Parameters can be passed to a SUB or a FUNCTION either by reference or by value. Unless otherwise specified, a parameter is always passed by reference. That means that a SUB or a FUNCTION gets the parameter and can read and modify its value.</paragraph><paragraph role="paragraph">If you want to pass a parameter by value insert the key word "ByVal" in front of the parameter when you call a SUB or FUNCTION, for example:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="keyword">Function</item><item type="operator">(</item><item type="keyword">ByVal</item> <item type="identifier">Parameter</item><item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">In this case, the original content of the parameter will not be modified by the FUNCTION since it only gets the value and not the parameter itself.</paragraph><paragraph role="heading" level="2">Scope of Variables</paragraph><paragraph role="paragraph">A variable defined within a SUB or FUNCTION, only remains valid until the procedure is exited. This is known as a "local" variable. In many cases, you need a variable to be valid in all procedures, in every module of all libraries, or after a SUB or FUNCTION is exited.</paragraph><paragraph role="heading" level="3">Declaring Variables Outside a SUB or FUNCTION</paragraph><bascode><paragraph role="bascode"><item type="keyword">Global</item> <item type="identifier">VarName</item> <item type="keyword">As</item> <item type="identifier">TYPENAME</item></paragraph></bascode><paragraph role="paragraph">The variable is valid as long as the $[officename] session lasts.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Public</item> <item type="identifier">VarName</item> <item type="keyword">As</item> <item type="identifier">TYPENAME</item></paragraph></bascode><paragraph role="paragraph">The variable is valid in all modules.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Private</item> <item type="identifier">VarName</item> <item type="keyword">As</item> <item type="identifier">TYPENAME</item></paragraph></bascode><paragraph role="paragraph">The variable is only valid in this module.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">VarName</item> <item type="keyword">As</item> <item type="identifier">TYPENAME</item></paragraph></bascode><paragraph role="paragraph">The variable is only valid in this module.</paragraph><paragraph role="heading" level="3">Example for private variables</paragraph><paragraph role="paragraph">Enforce private variables to be private across modules by setting CompatibilityMode(true).</paragraph><bascode><paragraph role="bascode"><item type="comment">' ***** Module1 *****</item></paragraph><paragraph role="bascode"><item type="keyword">Private</item> <item type="identifier">myText</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">initMyText</item></paragraph><paragraph role="bascode">    <item type="identifier">myText</item> <item type="operator">=</item> <item type="string">"Hello"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"In module1 : "</item><item type="operator">,</item> <item type="identifier">myText</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="comment">' ***** Module2 *****</item></paragraph><paragraph role="bascode"><item type="comment">'Option Explicit</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">demoBug</item></paragraph><paragraph role="bascode">    <item type="identifier">CompatibilityMode</item><item type="operator">(</item> <item type="identifier">true</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">initMyText</item></paragraph><paragraph role="bascode">    <item type="comment">' Now returns empty string</item></paragraph><paragraph role="bascode">    <item type="comment">' (or rises error for Option Explicit)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"Now in module2 : "</item><item type="operator">,</item> <item type="identifier">myText</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="heading" level="3">Saving Variable Content after Exiting a SUB or FUNCTION</paragraph><bascode><paragraph role="bascode"><item type="keyword">Static</item> <item type="identifier">VarName</item> <item type="keyword">As</item> <item type="identifier">TYPENAME</item></paragraph></bascode><paragraph role="paragraph">The variable retains its value until the next time the FUNCTION or SUB is entered. The declaration must exist inside a SUB or a FUNCTION.</paragraph><paragraph role="heading" level="2">Specifying the Return Value Type of a FUNCTION</paragraph><paragraph role="paragraph">As with variables, include a type-declaration character after the function name, or the type indicated by "As" and the corresponding key word at the end of the parameter list to define the type of the function's return value, for example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">WordCount</item><item type="operator">(</item><item type="identifier">WordText</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�6=��text/sbasic/shared/03090201.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Do...Loop Statement [Runtime]</title><filename>/text/sbasic/shared/03090201.xhp</filename></topic></meta><body><section id="doloop"><bookmark branch="index" id="bm_id3156116"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090201.xhp">Do...Loop Statement [Runtime]</link></paragraph><paragraph role="paragraph">Repeats the statements between the Do and the Loop statement while the condition is True or until the condition becomes True.</paragraph></section><paragraph role="heading" level="2">Syntax</paragraph><paragraph role="paragraph">Do [{While | Until} condition = True]</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">[Exit Do]</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">Loop</paragraph><paragraph role="paragraph">or</paragraph><paragraph role="paragraph">Do</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">[Exit Do]</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">Loop [{While | Until} condition = True]</paragraph><paragraph role="heading" level="2">Parameters/Elements</paragraph><paragraph role="paragraph"><emph>Condition:</emph> A comparison, numeric or string expression, that evaluates either True or False.</paragraph><paragraph role="paragraph"><emph>Statement block:</emph> Statements that you want to repeat while or until the condition is True.</paragraph><paragraph role="paragraph">The <emph>Do...Loop</emph> statement executes a loop as long as, or until, a certain condition is True. The condition for exiting the loop must be entered following either the <emph>Do</emph> or the <emph>Loop</emph> statement. The following examples are valid combinations:</paragraph><paragraph role="heading" level="2">Syntax</paragraph><paragraph role="paragraph">Do While condition = True</paragraph><paragraph role="paragraph">...statement block</paragraph><paragraph role="paragraph">Loop</paragraph><paragraph role="paragraph">The statement block between the Do While and the Loop statements is repeated so long as the condition is true.</paragraph><paragraph role="paragraph">Do Until condition = True</paragraph><paragraph role="paragraph">...statement block</paragraph><paragraph role="paragraph">Loop</paragraph><paragraph role="paragraph">The statement block between the Do Until and the Loop statements is repeated if the condition so long as the condition is false.</paragraph><paragraph role="paragraph">Do</paragraph><paragraph role="paragraph">...statement block</paragraph><paragraph role="paragraph">Loop While condition = True</paragraph><paragraph role="paragraph">The statement block between the Do and the Loop statements repeats so long as the condition is true.</paragraph><paragraph role="paragraph">Do</paragraph><paragraph role="paragraph">...statement block</paragraph><paragraph role="paragraph">Loop Until condition = True</paragraph><paragraph role="paragraph">The statement block between the Do and the Loop statements repeats until the condition is true.</paragraph><paragraph role="paragraph">Use the <emph>Exit Do</emph> statement to unconditionally end the loop. You can add this statement anywhere in a <emph>Do</emph>...<emph>Loop</emph> statement. You can also define an exit condition using the <emph>If...Then</emph> structure as follows:</paragraph><paragraph role="paragraph">Do...</paragraph><paragraph role="paragraph">statements</paragraph><paragraph role="paragraph">If condition = True Then Exit Do</paragraph><paragraph role="paragraph">statements</paragraph><paragraph role="paragraph">Loop...</paragraph><paragraph role="heading" level="2">Example</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDoLoop</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sPath</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sPath</item> <item type="operator">=</item> <item type="string">"c:\"</item></paragraph><paragraph role="bascode">    <item type="identifier">sFile</item> <item type="operator">=</item> <item type="identifier">Dir$</item><item type="operator">(</item> <item type="identifier">sPath</item> <item type="operator">,</item><item type="number">22</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">sFile</item> <item type="operator">&lt;</item><item type="operator">&gt;</item> <item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">        <item type="keyword">Do</item></paragraph><paragraph role="bascode">            <item type="identifier">MsgBox</item> <item type="identifier">sFile</item></paragraph><paragraph role="bascode">            <item type="identifier">sFile</item> <item type="operator">=</item> <item type="identifier">Dir$</item></paragraph><paragraph role="bascode">        <item type="keyword">Loop</item> <item type="keyword">Until</item> <item type="identifier">sFile</item> <item type="operator">=</item> <item type="string">""</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�HP�N
N
text/sbasic/shared/03070300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>"+" Operator [Runtime]</title><filename>/text/sbasic/shared/03070300.xhp</filename></topic></meta><body><section id="addition"><bookmark branch="index" id="bm_id3145316"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03070300.xhp">"+" Operator [Runtime]</link></paragraph><paragraph role="paragraph">Adds or combines two expressions.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="operator">+</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numerical expression that contains the result of the addition.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any numerical expressions that you want to combine or to add.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleAddition1</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">5</item> <item type="operator">+</item> <item type="number">5</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleAddition2</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iValue1</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iValue2</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iValue1</item> <item type="operator">=</item> <item type="number">5</item></paragraph><paragraph role="bascode">    <item type="identifier">iValue2</item> <item type="operator">=</item> <item type="number">10</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">iValue1</item> <item type="operator">+</item> <item type="identifier">iValue2</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XH�����text/sbasic/shared/03132500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GetDefaultContext Function [Runtime]</title><filename>/text/sbasic/shared/03132500.xhp</filename></topic></meta><body><section id="getdefaultcontext"><bookmark branch="index" id="bm_id4761192"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03132500.xhp">GetDefaultContext Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the default context of the process service factory, if existent, else returns a null reference. </paragraph></section><paragraph role="paragraph">This runtime function returns the default component context to be used, if instantiating services via XmultiServiceFactory. See the <item type="literal">Professional UNO</item> chapter in the <item type="literal">Developer's Guide</item> on <link href="http://api.libreoffice.org">api.libreoffice.org</link> for more information.</paragraph></body></helpdocument>
PK
Nw�Xp˭'��text/sbasic/shared/03030202.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Minute Function [Runtime]</title><filename>/text/sbasic/shared/03030202.xhp</filename></topic></meta><body><section id="minute"><bookmark branch="index" id="bm_id3155419"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030202.xhp">Minute Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the minute of the hour that corresponds to the serial time value that is generated by the TimeSerial or the TimeValue function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Minute</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Numeric expression that contains the serial time value that is used to return the minute value.</paragraph><paragraph role="paragraph">This function is the opposite of the <emph>TimeSerial </emph>function. It returns the minute of the serial time value that is generated by the <emph>TimeSerial</emph> or the <emph>TimeValue </emph>function. For example, the expression:</paragraph><paragraph role="paragraph">Print Minute(TimeSerial(12,30,41))</paragraph><paragraph role="paragraph">returns the value 30.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">Sub ExampleMinute</paragraph><paragraph role="paragraph">MsgBox "The current minute is "&amp; Minute(Now)&amp; "."</paragraph><paragraph role="paragraph">end sub</paragraph></body></helpdocument>
PK
Nw�X{,�(NNtext/sbasic/shared/03080101.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Atn Function [Runtime]</title><filename>/text/sbasic/shared/03080101.xhp</filename></topic></meta><body><section id="atn"><bookmark branch="index" id="bm_id3150616"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080101.xhp">Atn Function [Runtime]</link></paragraph><paragraph role="paragraph">Trigonometric function that returns the arctangent of a numeric expression. The return value is in the range -Pi/2 to +Pi/2.</paragraph></section><paragraph role="paragraph">The arctangent is the inverse of the tangent function. The Atn Function returns the angle "Alpha", expressed in radians, using the tangent of this angle. The function can also return the angle "Alpha" by comparing the ratio of the length of the side that is opposite of the angle to the length of the side that is adjacent to the angle in a right-angled triangle.</paragraph><paragraph role="paragraph">Atn(side opposite the angle/side adjacent to angle)= Alpha</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Atn</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numerical expression that represents the ratio of two sides of a right triangle. The Atn function returns the corresponding angle in radians (arctangent).</paragraph><paragraph role="paragraph">To convert radians to degrees, multiply radians by 180/pi.</paragraph><paragraph role="paragraph">degree=(radian*180)/pi</paragraph><paragraph role="paragraph">radian=(degree*pi)/180</paragraph><paragraph role="paragraph">Pi is here the fixed circle constant with the rounded value 3.14159.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' The following example calculates for a right-angled triangle</item></paragraph><paragraph role="bascode"><item type="comment">' the angle Alpha from the tangent of the angle Alpha:</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleAtn</item></paragraph><paragraph role="bascode"><item type="comment">' rounded Pi = 3.14159 Is a predefined constant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">d1</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">d2</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode">    <item type="identifier">d1</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the length of the side adjacent to the angle: "</item><item type="operator">,</item><item type="string">"Adjacent"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">d2</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the length of the side opposite the angle: "</item><item type="operator">,</item><item type="string">"Opposite"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"The Alpha angle is"</item><item type="operator">;</item> <item type="operator">(</item><item type="identifier">atn</item> <item type="operator">(</item><item type="identifier">d2</item><item type="unknown">/</item><item type="identifier">d1</item><item type="operator">)</item> <item type="operator">*</item> <item type="number">180</item> <item type="unknown">/</item> <item type="identifier">Pi</item><item type="operator">)</item><item type="operator">;</item> <item type="string">" degrees"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X���|{
{
text/sbasic/shared/03090401.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Call Statement [Runtime]</title><filename>/text/sbasic/shared/03090401.xhp</filename></topic></meta><body><section id="call"><bookmark branch="index" id="bm_id3154422"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090401.xhp">Call Statement [Runtime]</link></paragraph><paragraph role="paragraph">Transfers the control of the program to a subroutine, a function, or a DLL procedure.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">[Call]</item> <item type="keyword">Name</item> <item type="identifier">[Parameter]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Name:</emph> Name of the subroutine, the function, or the DLL that you want to call</paragraph><paragraph role="paragraph"><emph>Parameter:</emph> Parameters to pass to the procedure. The type and number of parameters is dependent on the routine that is executing.</paragraph><paragraph role="note">A keyword is optional when you call a procedure. If a function is executed as an expression, the parameters must be enclosed by brackets in the statement. If a DLL is called, it must first be specified in the <emph>Declare-Statement</emph>.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCall</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="string">"LibreOffice"</item></paragraph><paragraph role="bascode">    <item type="keyword">Call</item> <item type="identifier">f_callFun</item> <item type="identifier">sVar</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"/><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">f_callFun</item> <item type="operator">(</item><item type="identifier">sText</item> <item type="keyword">as</item> <item type="keyword">String</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">Msgbox</item> <item type="identifier">sText</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�t�ZXXtext/sbasic/shared/03102450.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsError Function [Runtime]</title><filename>/text/sbasic/shared/03102450.xhp</filename></topic></meta><body><section id="iserror"><bookmark branch="index" id="bm_id4954680"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102450.xhp">IsError Function [Runtime]</link></paragraph><paragraph role="paragraph">Tests if a variable contains an error value.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsError</item> <item type="operator">(</item><item type="identifier">Var</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Var:</emph> Any variable that you want to test. If the variable contains an error value, the function returns True, otherwise the function returns False.</paragraph></body></helpdocument>
PK
Mw�X(��J��text/sbasic/shared/01050200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Call Stack Window (Calls)</title><filename>/text/sbasic/shared/01050200.xhp</filename></topic></meta><body><section id="kommando"><bookmark branch="hid/BASCTL_HID_BASICIDE_STACKWINDOW_LIST" id="bm_id3150541"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01050200.xhp">Call Stack Window (Calls)</link></paragraph><paragraph role="paragraph"><ahelp hid="HID_BASICIDE_STACKWINDOW_LIST" visibility="hidden">Displays the sequence of procedures and functions during the execution of a program.</ahelp> The <emph>Call Stack</emph> allows you to monitor the sequence of procedures and functions during the execution of a program. The procedures are functions are displayed bottom to top with the most recent function or procedure call at the top of the list.</paragraph></section></body></helpdocument>
PK
Mw�X?�_��text/sbasic/shared/01030300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Debugging a Basic Program</title><filename>/text/sbasic/shared/01030300.xhp</filename></topic></meta><body><section id="basicfehler"><bookmark branch="index" id="bm_id3153344"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01030300.xhp">Debugging a Basic Program</link></paragraph></section><paragraph role="heading" level="2">Breakpoints and Single Step Execution</paragraph><paragraph role="paragraph">You can check each line in your Basic program for errors using single step execution. Errors are easily traced since you can immediately see the result of each step. A pointer in the breakpoint column of the Editor indicates the current line. You can also set a breakpoint if you want to force the program to be interrupted at a specific position.</paragraph><paragraph role="paragraph">Double-click in the <emph>breakpoint</emph> column at the left of the Editor window to toggle a breakpoint at the corresponding line. When the program reaches a breakpoint, the program execution is interrupted.</paragraph><paragraph role="paragraph">The <emph>single step </emph>execution using the <emph>Single Step</emph> icon causes the program to branch into procedures and functions.</paragraph><paragraph role="paragraph">The procedure step execution using the <emph>Procedure Step</emph> icon causes the program to skip over procedures and functions as a single step.</paragraph><paragraph role="heading" level="3">Properties of a Breakpoint</paragraph><paragraph role="paragraph">The properties of a breakpoint are available through its context menu by right-clicking the breakpoint in the breakpoint column.</paragraph><paragraph role="paragraph">You can <emph>activate</emph> and <emph>deactivate</emph> a breakpoint by selecting <emph>Active</emph> from its context menu. When a breakpoint is deactivated, it does not interrupt the program execution. </paragraph><paragraph role="paragraph">Select <emph>Properties</emph> from the context menu of a breakpoint or select <emph>Breakpoints</emph> from the context menu of the breakpoint column to call the <emph>Breakpoints</emph> dialog where you can specify other breakpoint options.</paragraph><paragraph role="paragraph">The list displays all <emph>breakpoints</emph> with the corresponding line number in the source code. You can activate or deactivate a selected breakpoint by checking or clearing the <emph>Active</emph> box.</paragraph><paragraph role="paragraph">The <emph>Pass Count</emph> specifies the number of times the breakpoint can be passed over before the program is interrupted. If you enter 0 (default setting) the program is always interrupted as soon as a breakpoint is encountered.</paragraph><paragraph role="paragraph">Click <emph>Delete</emph> to remove the breakpoint from the program.</paragraph><paragraph role="heading" level="2">Observing the Value of Variables</paragraph><paragraph role="paragraph">You can monitor the values of a variable by adding it to the <emph>Watch</emph> window. To add a variable to the list of watched variables, type the variable name in the <emph>Watch</emph> text box and press Enter.</paragraph><paragraph role="paragraph">The values of variables are only displayed if they are in scope. Variables that are not defined at the current source code location display ("Out of Scope") instead of a value.</paragraph><paragraph role="paragraph">You can also include arrays in the Watch window. If you enter the name of an array variable without an index value in the Watch text box, the content of the entire array is displayed.</paragraph><paragraph role="tip">If you rest the mouse over a predefined variable in the Editor at run-time, the content of the variable is displayed in a pop-up box.</paragraph><paragraph role="heading" level="2">The Call Stack Window</paragraph><paragraph role="paragraph"><ahelp hid="HID_BASICIDE_STACKWINDOW_LIST">Provides an overview of the call hierarchy of procedures and functions.</ahelp> You can determine which procedures and functions called which other procedures and functions at the current point in the source code.</paragraph><paragraph role="heading" level="2">List of Run-Time Errors</paragraph><embed href="text/sbasic/shared/00000003.xhp#allerrors"/></body></helpdocument>
PK
Nw�X��
8aatext/sbasic/shared/03120307.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Right Function [Runtime]</title><filename>/text/sbasic/shared/03120307.xhp</filename></topic></meta><body><section id="right"><bookmark branch="index" id="bm_id3153311"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120307.xhp">Right Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the rightmost "n" characters of a string expression.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03120303.xhp">Left Function</link>.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Right</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">n</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that you want to return the rightmost characters of.</paragraph><paragraph role="paragraph"><emph>n:</emph> Numeric expression that defines the number of characters that you want to return. If <emph>n</emph> = 0, a zero-length string is returned. The maximum allowed value is 65535.</paragraph><paragraph role="paragraph">The following example converts a date in YYYY-MM-DD format to the US date format (MM/DD/YYYY).</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleUSDate</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sInput</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sUS_date</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sInput</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Please input a date in the international format 'YYYY-MM-DD'"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">Mid</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">6</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="string">"/"</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="identifier">Right</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="string">"/"</item></paragraph><paragraph role="bascode">    <item type="identifier">sUS_date</item> <item type="operator">=</item> <item type="identifier">sUS_date</item> <item type="operator">&amp;</item> <item type="identifier">Left</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item> <item type="number">4</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sUS_date</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XF����
�
text/sbasic/shared/03101100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefBool Statement [Runtime]</title><filename>/text/sbasic/shared/03101100.xhp</filename></topic></meta><body><section id="defbool"><bookmark branch="index" id="bm_id3145759"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101100.xhp">DefBool Statement [Runtime]</link></paragraph><paragraph role="paragraph">If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set the default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword: </emph>Default variable type</paragraph><paragraph role="paragraph"><emph>DefBool:</emph> Boolean</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definition for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefBool</item></paragraph><paragraph role="bascode">    <item type="identifier">bOK</item><item type="operator">=</item><item type="identifier">TRUE</item> <item type="comment">' bOK is an implicit boolean variable</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�	Ń]]text/sbasic/shared/03030103.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Day Function [Runtime]</title><filename>/text/sbasic/shared/03030103.xhp</filename></topic></meta><body><section id="day"><bookmark branch="index" id="bm_id3153345"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030103.xhp">Day Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a value that represents the day of the month based on a serial date number generated by <emph>DateSerial</emph> or <emph>DateValue</emph>.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Day</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> A numeric expression that contains a serial date number from which you can determine the day of the month.</paragraph><paragraph role="paragraph">This function is basically the opposite of the DateSerial function, returning the day of the month from a serial date number generated by the <emph>DateSerial</emph> or the <emph>DateValue</emph> function. For example, the expression</paragraph><bascode><paragraph role="bascode"><item type="keyword">Print</item> <item type="identifier">Day</item> <item type="operator">(</item><item type="identifier">DateSerial</item><item type="operator">(</item><item type="number">1994</item><item type="operator">,</item> <item type="number">12</item><item type="operator">,</item> <item type="number">20</item><item type="operator">)</item><item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">returns the value 20.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDay</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"Day "</item> <item type="operator">&amp;</item> <item type="identifier">Day</item><item type="operator">(</item><item type="identifier">DateSerial</item><item type="operator">(</item><item type="number">1994</item><item type="operator">,</item> <item type="number">12</item><item type="operator">,</item> <item type="number">20</item><item type="operator">)</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" of the month"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�l0DDtext/sbasic/shared/03080302.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Rnd Function [Runtime]</title><filename>/text/sbasic/shared/03080302.xhp</filename></topic></meta><body><section id="rnd"><bookmark branch="index" id="bm_id3148685"/><paragraph role="heading" level="1"><variable id="heading_rnd"><link href="text/sbasic/shared/03080302.xhp">Rnd Function [Runtime]</link></variable></paragraph><paragraph role="paragraph">Returns a random number between 0 and 1.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Rnd</item> <item type="identifier">[(Expression)]</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Has no effect, is ignored if provided.</paragraph><paragraph role="paragraph">The <emph>Rnd</emph> function returns decimal fractions ranging from 0 (included) to 1 (excluded) according to a uniform distribution. It uses the Mersenne Twister 19937 random-number generator. To generate random integers in a given range, use a formula like in the example below. A <emph>Randomize</emph> statement with a defined seed value can be used beforehand, if a predictable sequence of numbers is desired.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRandomSelect</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="identifier">Int</item><item type="operator">(</item><item type="operator">(</item><item type="number">15</item> <item type="operator">*</item> <item type="identifier">Rnd</item><item type="operator">)</item> <item type="unknown">-</item><item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Select</item> <item type="keyword">Case</item> <item type="identifier">iVar</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">5</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Number from 1 to 5"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">6</item><item type="operator">,</item> <item type="number">7</item><item type="operator">,</item> <item type="number">8</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Number from 6 to 8"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="keyword">Is</item> <item type="operator">&gt;</item> <item type="number">8</item> <item type="keyword">And</item> <item type="identifier">iVar</item> <item type="operator">&lt;</item> <item type="number">11</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Greater than 8"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="keyword">Else</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Outside range 1 to 10"</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">Select</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><section id="relatedtopics"><paragraph role="paragraph"><embedvar href="text/sbasic/shared/03080301.xhp#heading_randomize"/></paragraph></section></body></helpdocument>
PK
Mw�X(@�/��text/sbasic/shared/03010100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Display Functions</title><filename>/text/sbasic/shared/03010100.xhp</filename></topic></meta><body><section id="ausgabe"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010100.xhp">Display Functions</link></paragraph><paragraph role="paragraph">This section describes Runtime functions used to output information to the screen display.</paragraph></section><embed href="text/sbasic/shared/03010101.xhp#msgbox"/><embed href="text/sbasic/shared/03010102.xhp#msgbox"/><embed href="text/sbasic/shared/03010103.xhp#print"/></body></helpdocument>
PK
Mw�XwԆ�text/sbasic/shared/03020202.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Input# Statement [Runtime]</title><filename>/text/sbasic/shared/03020202.xhp</filename></topic></meta><body><section id="input"><bookmark branch="index" id="bm_id3154908"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020202.xhp">Input# Statement [Runtime]</link></paragraph><paragraph role="paragraph">Reads data from an open sequential file.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><paragraph role="code">Input #FileNumber As Integer; var1[, var2[, var3[,...]]]</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> Number of the file that contains the data that you want to read. The file must be opened with the Open statement using the key word INPUT.</paragraph><paragraph role="paragraph"><emph>var:</emph> A numeric or string variable that you assign the values read from the opened file to.</paragraph><paragraph role="paragraph">The <emph>Input#</emph> statement reads numeric values or strings from an open file and assigns the data to one or more variables. A numeric variable is read up to the first carriage return (Asc=13), line feed (Asc=10), space, or comma. String variables are read to up to the first carriage return (Asc=13), line feed (Asc=10), or comma.</paragraph><paragraph role="paragraph">Data and data types in the opened file must appear in the same order as the variables that are passed in the "var" parameter. If you assign non-numeric values to a numeric variable, "var" is assigned a value of "0".</paragraph><paragraph role="paragraph">Records that are separated by commas cannot be assigned to a string variable. Quotation marks (") in the file are disregarded as well. If you want to read these characters from the file, use the <emph>Line Input#</emph> statement to read pure text files (files containing only printable characters) line by line.</paragraph><paragraph role="paragraph">If the end of the file is reached while reading a data element, an error occurs and the process is aborted.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWorkWithAFile</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sName</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sValue</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sFileName</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="identifier">sFileName</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode"><item type="identifier">iCount</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="comment">' Write data ( which we will read later with Input ) to file</item></paragraph><paragraph role="bascode"><item type="keyword">Open</item> <item type="identifier">sFileName</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="identifier">sName</item> <item type="operator">=</item> <item type="string">"Hamburg"</item></paragraph><paragraph role="bascode"><item type="identifier">sValue</item> <item type="operator">=</item> <item type="number">200</item></paragraph><paragraph role="bascode"><item type="keyword">Write</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">,</item> <item type="identifier">sName</item><item type="operator">,</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="identifier">sName</item> <item type="operator">=</item> <item type="string">"New York"</item></paragraph><paragraph role="bascode"><item type="identifier">sValue</item> <item type="operator">=</item> <item type="number">300</item></paragraph><paragraph role="bascode"><item type="keyword">Write</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">,</item> <item type="identifier">sName</item><item type="operator">,</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="identifier">sName</item> <item type="operator">=</item> <item type="string">"Miami"</item></paragraph><paragraph role="bascode"><item type="identifier">sValue</item> <item type="operator">=</item> <item type="number">459</item></paragraph><paragraph role="bascode"><item type="keyword">Write</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">,</item> <item type="identifier">sName</item><item type="operator">,</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iCount</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="identifier">iCount</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode"><item type="comment">' Read data file using Input</item></paragraph><paragraph role="bascode"><item type="keyword">Open</item> <item type="identifier">sFileName</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">;</item> <item type="identifier">sName</item><item type="operator">,</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="identifier">MsgBox</item> <item type="identifier">sName</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">;</item> <item type="identifier">sName</item><item type="operator">,</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="identifier">MsgBox</item> <item type="identifier">sName</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">;</item> <item type="identifier">sName</item><item type="operator">,</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="identifier">MsgBox</item> <item type="identifier">sName</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode"><item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�8�qtext/sbasic/shared/03090301.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GoSub...Return Statement [Runtime]</title><filename>/text/sbasic/shared/03090301.xhp</filename></topic></meta><body><section id="gosubreturn"><bookmark branch="index" id="bm_id3147242"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090301.xhp">GoSub...Return Statement [Runtime]</link></paragraph><paragraph role="paragraph">Calls a subroutine that is indicated by a label from a subroutine or a function. The statements following the label are executed until the next Return statement. Afterwards, the program continues with the statement that follows the <emph>GoSub </emph>statement.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">see</item> <item type="identifier">Parameters</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">Sub/Function</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph"> Label</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">GoSub Label</paragraph><paragraph role="paragraph">Exit Sub/Function</paragraph><paragraph role="paragraph">Label:</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">Return</paragraph><paragraph role="paragraph">End Sub/Function</paragraph><paragraph role="paragraph">The <emph>GoSub</emph> statement calls a local subroutine indicated by a label from within a subroutine or a function. The name of the label must end with a colon (":").</paragraph><paragraph role="warning">If the program encounters a Return statement not preceded by <emph>GoSub</emph>, $[officename] Basic returns an error message. Use <emph>Exit Sub</emph> or <emph>Exit Function</emph> to ensure that the program leaves a Sub or Function before reaching the next Return statement.</paragraph><paragraph role="paragraph">The following example demonstrates the use of <emph>GoSub</emph> and <emph>Return</emph>. By executing a program section twice, the program calculates the square root of two numbers that are entered by the user.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleGoSub</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iInputa</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iInputb</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iInputc</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode">    <item type="identifier">iInputa</item> <item type="operator">=</item> <item type="identifier">Int</item><item type="operator">(</item><item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the first number: "</item><item type="operator">,</item><item type="string">"NumberInput"</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">iInputb</item> <item type="operator">=</item> <item type="identifier">Int</item><item type="operator">(</item><item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the second number: "</item><item type="operator">,</item><item type="string">"NumberInput"</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">iInputc</item><item type="operator">=</item><item type="identifier">iInputa</item></paragraph><paragraph role="bascode">    <item type="keyword">GoSub</item> <item type="identifier">SquareRoot</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"The square root of"</item><item type="operator">;</item><item type="identifier">iInputa</item><item type="operator">;</item><item type="string">" is"</item><item type="operator">;</item><item type="identifier">iInputc</item></paragraph><paragraph role="bascode">    <item type="identifier">iInputc</item><item type="operator">=</item><item type="identifier">iInputb</item></paragraph><paragraph role="bascode">    <item type="keyword">GoSub</item> <item type="identifier">SquareRoot</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"The square root of"</item><item type="operator">;</item><item type="identifier">iInputb</item><item type="operator">;</item><item type="string">" is"</item><item type="operator">;</item><item type="identifier">iInputc</item></paragraph><paragraph role="bascode">    <item type="keyword">Exit</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"><item type="identifier">SquareRoot</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">iInputc</item><item type="operator">=</item><item type="identifier">sqr</item><item type="operator">(</item><item type="identifier">iInputc</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Return</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�	u��text/sbasic/shared/03090102.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Select...Case Statement [Runtime]</title><filename>/text/sbasic/shared/03090102.xhp</filename></topic></meta><body><section id="selectcase"><bookmark branch="index" id="bm_id3149416"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090102.xhp">Select...Case Statement [Runtime]</link></paragraph><paragraph role="paragraph">Defines one or more statement blocks depending on the value of an expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Select</item> <item type="keyword">Case</item> <item type="identifier">condition</item> <item type="keyword">Case</item> <item type="identifier">expression</item> <item type="identifier">Statement</item> <item type="identifier">Block</item> <item type="identifier">[Case expression2 Statement Block]</item><item type="identifier">[Case Else]</item> <item type="identifier">Statement</item> <item type="identifier">Block</item> <item type="keyword">End</item> <item type="keyword">Select</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Condition:</emph> Any expression that controls if the statement block that follows the respective Case clause is executed.</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any expression that is compatible with the Condition type expression. The statement block that follows the Case clause is executed if <emph>Condition</emph> matches <emph>Expression</emph>.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRandomSelect</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="identifier">Int</item><item type="operator">(</item><item type="operator">(</item><item type="number">15</item> <item type="operator">*</item> <item type="identifier">Rnd</item><item type="operator">)</item> <item type="unknown">-</item><item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Select</item> <item type="keyword">Case</item> <item type="identifier">iVar</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">5</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Number from 1 to 5"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">6</item><item type="operator">,</item> <item type="number">7</item><item type="operator">,</item> <item type="number">8</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Number from 6 to 8"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">8</item> <item type="keyword">To</item> <item type="number">10</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Greater than 8"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="keyword">Else</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Out of range 1 to 10"</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">Select</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xz9�mmtext/sbasic/shared/03080801.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Hex Function [Runtime]</title><filename>/text/sbasic/shared/03080801.xhp</filename></topic></meta><body><section id="hex"><bookmark branch="index" id="bm_id3150616"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080801.xhp">Hex Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a string that represents the hexadecimal value of a number.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Hex</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numeric expression that you want to convert to a hexadecimal number.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleHex</item></paragraph><paragraph role="bascode"><item type="comment">' uses BasicFormulas in $[officename] Calc</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">a2</item><item type="operator">,</item> <item type="identifier">b2</item><item type="operator">,</item> <item type="identifier">c2</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">a2</item> <item type="operator">=</item> <item type="string">"&amp;H3E8"</item></paragraph><paragraph role="bascode">    <item type="identifier">b2</item> <item type="operator">=</item> <item type="identifier">Hex2Int</item><item type="operator">(</item><item type="identifier">a2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">b2</item></paragraph><paragraph role="bascode">    <item type="identifier">c2</item> <item type="operator">=</item> <item type="identifier">Int2Hex</item><item type="operator">(</item><item type="identifier">b2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">c2</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">Hex2Int</item><item type="operator">(</item> <item type="identifier">sHex</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode"><item type="comment">' Returns a long integer from a hexadecimal value.</item></paragraph><paragraph role="bascode">    <item type="identifier">Hex2Int</item> <item type="operator">=</item> <item type="identifier">clng</item><item type="operator">(</item> <item type="identifier">sHex</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">Int2Hex</item><item type="operator">(</item> <item type="identifier">iLong</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="comment">' Calculates a hexadecimal value in integer.</item></paragraph><paragraph role="bascode">    <item type="identifier">Int2Hex</item> <item type="operator">=</item> <item type="string">"&amp;H"</item> <item type="operator">&amp;</item> <item type="identifier">Hex</item><item type="operator">(</item> <item type="identifier">iLong</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode></body></helpdocument>
PK
Nw�X ,�99text/sbasic/shared/03020305.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Seek Statement [Runtime]</title><filename>/text/sbasic/shared/03020305.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id3159413"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020305.xhp">Seek Statement [Runtime]</link></paragraph><paragraph role="paragraph">Sets the position for the next writing or reading in a file that was opened with the Open statement.</paragraph><paragraph role="paragraph">For random access files, the Seek statement sets the number of the next record to be accessed.</paragraph><paragraph role="paragraph">For all other files, the Seek statement sets the byte position at which the next operation is to occur.</paragraph><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03020103.xhp">Open</link>, <link href="text/sbasic/shared/03020304.xhp">Seek</link>.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Seek</item><item type="identifier">[#FileNumber]</item><item type="operator">,</item> <item type="identifier">Position</item> <item type="operator">(</item><item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber: </emph>The data channel number used in the Open statement.</paragraph><paragraph role="paragraph"><emph>Position: </emph>Position for the next writing or reading. Position can be a number between 1 and 2,147,483,647. According to the file type, the position indicates the number of the record (files in the Random mode) or the byte position (files in the Binary, Output, Append or Input mode). The first byte in a file is position 1, the second byte is position 2, and so on.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err52"/></body></helpdocument>
PK
Nw�X��U��$�$text/sbasic/shared/03103600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>TypeName Function; VarType Function[Runtime]</title><filename>/text/sbasic/shared/03103600.xhp</filename></topic></meta><body><section id="typename"><bookmark branch="index" id="bm_id3143267"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103600.xhp">TypeName Function; VarType Function[Runtime]</link></paragraph><paragraph role="paragraph">Returns a string (TypeName) or a numeric value (VarType) that contains information for a variable.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">TypeName</item> <item type="operator">(</item><item type="identifier">Variable</item><item type="operator">)</item><item type="identifier">VarType</item> <item type="operator">(</item><item type="identifier">Variable</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String; Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Variable:</emph> The variable that you want to determine the type of. You can use the following values:</paragraph><table><tablerow><tablecell><paragraph role="paragraph">key word</paragraph></tablecell><tablecell><paragraph role="paragraph">VarType</paragraph></tablecell><tablecell><paragraph role="paragraph">Variable type</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Boolean</paragraph></tablecell><tablecell><paragraph role="paragraph">11</paragraph></tablecell><tablecell><paragraph role="paragraph">Boolean variable</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Date</paragraph></tablecell><tablecell><paragraph role="paragraph">7</paragraph></tablecell><tablecell><paragraph role="paragraph">Date variable</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Double</paragraph></tablecell><tablecell><paragraph role="paragraph">5</paragraph></tablecell><tablecell><paragraph role="paragraph">Double floating point variable</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Integer</paragraph></tablecell><tablecell><paragraph role="paragraph">2</paragraph></tablecell><tablecell><paragraph role="paragraph">Integer variable</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Long</paragraph></tablecell><tablecell><paragraph role="paragraph">3</paragraph></tablecell><tablecell><paragraph role="paragraph">Long integer variable</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Object</paragraph></tablecell><tablecell><paragraph role="paragraph">9</paragraph></tablecell><tablecell><paragraph role="paragraph">Object variable</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Single</paragraph></tablecell><tablecell><paragraph role="paragraph">4</paragraph></tablecell><tablecell><paragraph role="paragraph">Single floating-point variable</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">String</paragraph></tablecell><tablecell><paragraph role="paragraph">8</paragraph></tablecell><tablecell><paragraph role="paragraph">String variable</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Variant</paragraph></tablecell><tablecell><paragraph role="paragraph">12</paragraph></tablecell><tablecell><paragraph role="paragraph">Variant variable (can contain all types specified by the definition)</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Empty</paragraph></tablecell><tablecell><paragraph role="paragraph">0</paragraph></tablecell><tablecell><paragraph role="paragraph">Variable is not initialized</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Null</paragraph></tablecell><tablecell><paragraph role="paragraph">1</paragraph></tablecell><tablecell><paragraph role="paragraph">No valid data</paragraph></tablecell></tablerow></table><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleType</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">siVar</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">dVar</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">bVar</item> <item type="keyword">As</item> <item type="keyword">Boolean</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lVar</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">TypeName</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">VarType</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">    <item type="identifier">TypeName</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">VarType</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">    <item type="identifier">TypeName</item><item type="operator">(</item><item type="identifier">siVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">VarType</item><item type="operator">(</item><item type="identifier">siVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">    <item type="identifier">TypeName</item><item type="operator">(</item><item type="identifier">dVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">VarType</item><item type="operator">(</item><item type="identifier">dVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">    <item type="identifier">TypeName</item><item type="operator">(</item><item type="identifier">bVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">VarType</item><item type="operator">(</item><item type="identifier">bVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">    <item type="identifier">TypeName</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" "</item> <item type="operator">&amp;</item> <item type="identifier">VarType</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Some types In $[officename] Basic"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�|�	�	text/sbasic/shared/03130700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GetSystemTicks Function [Runtime]</title><filename>/text/sbasic/shared/03130700.xhp</filename></topic></meta><body><section id="getsystemticks"><bookmark branch="index" id="bm_id3147143"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03130700.xhp">GetSystemTicks Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the number of system ticks provided by the operating system. You can use this function to optimize certain processes.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">GetSystemTicks</item><item type="operator">(</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWait</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lTick</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lTick</item> <item type="operator">=</item> <item type="identifier">GetSystemTicks</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">Wait</item> <item type="number">2000</item></paragraph><paragraph role="bascode">    <item type="identifier">lTick</item> <item type="operator">=</item> <item type="operator">(</item><item type="identifier">GetSystemTicks</item><item type="operator">(</item><item type="operator">)</item> <item type="unknown">-</item> <item type="identifier">lTick</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">lTick</item> <item type="operator">&amp;</item> <item type="string">" Ticks"</item> <item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"The pause lasted"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�d\��text/sbasic/shared/03020304.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Seek Function [Runtime]</title><filename>/text/sbasic/shared/03020304.xhp</filename></topic></meta><body><section id="seek"><bookmark branch="index" id="bm_id3154367"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020304.xhp">Seek Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the position for the next writing or reading in a file that was opened with the open statement.</paragraph></section><paragraph role="paragraph">For random access files, the Seek function returns the number of the next record to be read.</paragraph><paragraph role="paragraph">For all other files, the function returns the byte position at which the next operation is to occur.</paragraph><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03020103.xhp">Open</link>, <link href="text/sbasic/shared/03020305.xhp">Seek</link>.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Seek</item> <item type="operator">(</item><item type="identifier">FileNumber</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> The data channel number used in the Open statement.</paragraph></body></helpdocument>
PK
Nw�X4fk ..text/sbasic/shared/03120101.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Asc Function [Runtime]</title><filename>/text/sbasic/shared/03120101.xhp</filename></topic></meta><body><section id="asc"><bookmark branch="index" id="bm_id3150499"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120101.xhp">Asc Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the ASCII (American Standard Code for Information Interchange) value of the first character in a string expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Asc</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any valid string expression. Only the first character in the string is relevant.</paragraph><paragraph role="paragraph">Use the Asc function to replace keys with values. If the Asc function encounters a blank string, $[officename] Basic reports a run-time error. In addition to 7 bit ASCII characters (Codes 0-127), the ASCII function can also detect non-printable key codes in ASCII code. This function can also handle 16 bit unicode characters.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleASC</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">ASC</item><item type="operator">(</item><item type="string">"A"</item><item type="operator">)</item> <item type="comment">' returns 65</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">ASC</item><item type="operator">(</item><item type="string">"Z"</item><item type="operator">)</item> <item type="comment">' returns 90</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">ASC</item><item type="operator">(</item><item type="string">"Las Vegas"</item><item type="operator">)</item> <item type="comment">' returns 76, since only the first character is taken into account</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><section id="relatedtopics"><paragraph role="paragraph"><link href="text/sbasic/shared/03120102.xhp">CHR</link></paragraph></section></body></helpdocument>
PK
Nw�X<��**text/sbasic/shared/03030120.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DateDiff Function [Runtime]</title><filename>/text/sbasic/shared/03030120.xhp</filename></topic></meta><body><section id="datediff"><bookmark branch="index" id="bm_id6134830"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030120.xhp">DateDiff Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the number of date intervals between two given date values.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">DateDiff</item> <item type="operator">(</item><item type="identifier">Add</item><item type="operator">,</item> <item type="identifier">Date1</item><item type="operator">,</item> <item type="identifier">Date2</item> <item type="identifier">[, Week_start [, Year_start]</item><item type="operator">]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">A number.</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Add</emph> - A string expression from the following table, specifying the date interval.</paragraph><embed href="text/sbasic/shared/03030110.xhp#datetable"/><paragraph role="paragraph"><emph>Date1, Date2</emph> - The two date values to be compared.</paragraph><section id="weekyear"><paragraph role="paragraph"><emph>Week_start</emph> - An optional parameter that specifies the starting day of a week. </paragraph><table><tablerow><tablecell><paragraph role="tablehead">Week_start value</paragraph></tablecell><tablecell><paragraph role="tablehead">Explanation</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">0</paragraph></tablecell><tablecell><paragraph role="tablecontent">Use system default value</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">1</paragraph></tablecell><tablecell><paragraph role="tablecontent">Sunday (default)</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">2</paragraph></tablecell><tablecell><paragraph role="tablecontent">Monday</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">3</paragraph></tablecell><tablecell><paragraph role="tablecontent">Tuesday</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">4</paragraph></tablecell><tablecell><paragraph role="tablecontent">Wednesday</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">5</paragraph></tablecell><tablecell><paragraph role="tablecontent">Thursday</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">6</paragraph></tablecell><tablecell><paragraph role="tablecontent">Friday</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">7</paragraph></tablecell><tablecell><paragraph role="tablecontent">Saturday</paragraph></tablecell></tablerow></table><paragraph role="paragraph"><emph>Year_start</emph> - An optional parameter that specifies the starting week of a year. </paragraph><table><tablerow><tablecell><paragraph role="tablehead">Year_start value</paragraph></tablecell><tablecell><paragraph role="tablehead">Explanation</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">0</paragraph></tablecell><tablecell><paragraph role="tablecontent">Use system default value</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">1</paragraph></tablecell><tablecell><paragraph role="tablecontent">Week 1 is the week with January, 1st (default)</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">2</paragraph></tablecell><tablecell><paragraph role="tablecontent">Week 1 is the first week containing four or more days of that year</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">3</paragraph></tablecell><tablecell><paragraph role="tablecontent">Week 1 is the first week containing only days of the new year</paragraph></tablecell></tablerow></table></section><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">example_datediff</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">DateDiff</item><item type="operator">(</item><item type="string">"d"</item><item type="operator">,</item> <item type="string">"1/1/2005"</item><item type="operator">,</item> <item type="string">"12/31/2005"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X���q
q
text/sbasic/shared/03100000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Variables</title><filename>/text/sbasic/shared/03100000.xhp</filename></topic></meta><body><section id="variablen"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100000.xhp">Variables</link></paragraph><paragraph role="paragraph">The following statements and functions are for working with variables. You can use these functions to declare or define variables, convert variables from one type to another, or determine the variable type.</paragraph></section><embed href="text/sbasic/shared/03100050.xhp#ccur"/><embed href="text/sbasic/shared/03100100.xhp#cbool"/><embed href="text/sbasic/shared/03100300.xhp#cdate"/><embed href="text/sbasic/shared/03100060.xhp#cdec"/><embed href="text/sbasic/shared/03100400.xhp#cdbl"/><embed href="text/sbasic/shared/03100500.xhp#cint"/><embed href="text/sbasic/shared/03100600.xhp#clng"/><embed href="text/sbasic/shared/03100700.xhp#const"/><embed href="text/sbasic/shared/03100900.xhp#csng"/><embed href="text/sbasic/shared/03101000.xhp#cstr"/><embed href="text/sbasic/shared/03100070.xhp#cvar"/><embed href="text/sbasic/shared/03100080.xhp#cverr"/><embed href="text/sbasic/shared/03101100.xhp#defbool"/><embed href="text/sbasic/shared/03101110.xhp#defcur"/><embed href="text/sbasic/shared/03101300.xhp#defdate"/><embed href="text/sbasic/shared/03101400.xhp#defdbl"/><embed href="text/sbasic/shared/03101120.xhp#deferr"/><embed href="text/sbasic/shared/03101500.xhp#defint"/><embed href="text/sbasic/shared/03101600.xhp#deflng"/><embed href="text/sbasic/shared/03101700.xhp#defobj"/><embed href="text/sbasic/shared/03101130.xhp#defsng"/><embed href="text/sbasic/shared/03101140.xhp#defstr"/><embed href="text/sbasic/shared/03102000.xhp#defvar"/><embed href="text/sbasic/shared/03102100.xhp#dimtext"/><embed href="text/sbasic/shared/03102101.xhp#redim"/><embed href="text/sbasic/shared/03102200.xhp#isarray"/><embed href="text/sbasic/shared/03102300.xhp#isdate"/><embed href="text/sbasic/shared/03102400.xhp#isempty"/><embed href="text/sbasic/shared/03102450.xhp#iserror"/><embed href="text/sbasic/shared/03102600.xhp#isnull"/><embed href="text/sbasic/shared/03102700.xhp#isnumeric"/><embed href="text/sbasic/shared/03102800.xhp#isobject"/><embed href="text/sbasic/shared/03102900.xhp#lbound"/><embed href="text/sbasic/shared/03103000.xhp#ubound"/><embed href="text/sbasic/shared/03103100.xhp#let"/><embed href="text/sbasic/shared/03104200.xhp#array"/><embed href="text/sbasic/shared/03104300.xhp#dimarray"/><embed href="text/sbasic/shared/03104700.xhp#erase"/><embed href="text/sbasic/shared/03103200.xhp#optionbase"/><embed href="text/sbasic/shared/03103300.xhp#optionexplicit"/><embed href="text/sbasic/shared/03103400.xhp#public"/><embed href="text/sbasic/shared/03103450.xhp#global"/><embed href="text/sbasic/shared/03103500.xhp#static"/><embed href="text/sbasic/shared/03103600.xhp#typename"/><embed href="text/sbasic/shared/03103700.xhp#set"/><embed href="text/sbasic/shared/03103800.xhp#findobject"/><embed href="text/sbasic/shared/03103900.xhp#findpropertyobject"/><embed href="text/sbasic/shared/03104100.xhp#optional"/><embed href="text/sbasic/shared/03104000.xhp#ismissing"/><embed href="text/sbasic/shared/03104400.xhp#hasunointerfaces"/><embed href="text/sbasic/shared/03104600.xhp#equalunoobjects"/><embed href="text/sbasic/shared/03104500.xhp#isunostruct"/></body></helpdocument>
PK
Nw�XH^K0��text/sbasic/shared/03103800.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FindObject Function [Runtime]</title><filename>/text/sbasic/shared/03103800.xhp</filename></topic></meta><body><section id="findobject"><bookmark branch="index" id="bm_id3145136"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103800.xhp">FindObject Function [Runtime]</link></paragraph><paragraph role="paragraph">Enables an object to be addressed at run-time as a string parameter through the object name.</paragraph></section><paragraph role="paragraph">For example, the following command:</paragraph><paragraph role="paragraph">MyObj.Prop1.Command = 5</paragraph><paragraph role="paragraph">corresponds to the command block:</paragraph><paragraph role="paragraph">Dim ObjVar as Object</paragraph><paragraph role="paragraph">Dim ObjProp as Object</paragraph><paragraph role="paragraph">ObjName As String = "MyObj"</paragraph><paragraph role="paragraph">ObjVar = FindObject( ObjName As String )</paragraph><paragraph role="paragraph">PropName As String = "Prop1"</paragraph><paragraph role="paragraph">ObjProp = FindPropertyObject( ObjVar, PropName As String )</paragraph><paragraph role="paragraph">ObjProp.Command = 5</paragraph><paragraph role="paragraph">This allows names to be dynamically created at run-time. For example:</paragraph><paragraph role="paragraph">"TextEdit1" to TextEdit5" in a loop to create five control names.</paragraph><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03103900.xhp">FindPropertyObject</link></paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FindObject</item><item type="operator">(</item> <item type="identifier">ObjName</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>ObjName: </emph>String that specifies the name of the object that you want to address at run-time.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err12"/></body></helpdocument>
PK
Nw�X0�i''text/sbasic/shared/03090103.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IIf Statement [Runtime]</title><filename>/text/sbasic/shared/03090103.xhp</filename></topic></meta><body><section id="iif"><bookmark branch="index" id="bm_id3155420"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090103.xhp">IIf Statement [Runtime]</link></paragraph><paragraph role="paragraph">Returns one of two possible function results, depending on the logical value of the evaluated expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IIf</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">,</item> <item type="identifier">ExpressionTrue</item><item type="operator">,</item> <item type="identifier">ExpressionFalse</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any expression that you want to evaluate. If the expression evaluates to <emph>True</emph>, the function returns the result of ExpressionTrue, otherwise it returns the result of ExpressionFalse.</paragraph><paragraph role="paragraph"><emph>ExpressionTrue, ExpressionFalse:</emph> Any expression, one of which will be returned as the function result, depending on the logical evaluation.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/></body></helpdocument>
PK
Nw�XټF  text/sbasic/shared/03120301.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Format Function [Runtime]</title><filename>/text/sbasic/shared/03120301.xhp</filename></topic></meta><body><section id="format"><bookmark branch="index" id="bm_id3153539"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120301.xhp">Format Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a number to a string, and then formats it according to the format that you specify.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Format</item> <item type="operator">(</item><item type="identifier">Number</item> <item type="identifier">[, Format As String]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Numeric expression that you want to convert to a formatted string.</paragraph><paragraph role="paragraph"><emph>Format:</emph> String that specifies the format code for the number. If <emph>Format</emph> is omitted, the Format function works like the <emph>Str</emph> function.</paragraph><paragraph role="heading" level="2">Formatting Codes</paragraph><paragraph role="paragraph">The following list describes the codes that you can use for formatting a number:</paragraph><paragraph role="paragraph"><emph>0:</emph> If <emph>Number</emph> has a digit at the position of the 0 in the format code, the digit is displayed, otherwise a zero is displayed.</paragraph><paragraph role="paragraph">If <emph>Number</emph> has fewer digits than the number of zeros in the format code, (on either side of the decimal), leading or trailing zeros are displayed. If the number has more digits to the left of the decimal separator than the amount of zeros in the format code, the additional digits are displayed without formatting.</paragraph><paragraph role="paragraph">Decimal places in the number are rounded according to the number of zeros that appear after the decimal separator in the <emph>Format </emph>code.</paragraph><paragraph role="paragraph"><emph>#:</emph> If <emph>Number</emph> contains a digit at the position of the # placeholder in the <emph>Format</emph> code, the digit is displayed, otherwise nothing is displayed at this position.</paragraph><paragraph role="paragraph">This symbol works like the 0, except that leading or trailing zeroes are not displayed if there are more # characters in the format code than digits in the number. Only the relevant digits of the number are displayed.</paragraph><paragraph role="paragraph"><emph>.:</emph> The decimal placeholder determines the number of decimal places to the left and right of the decimal separator.</paragraph><paragraph role="paragraph">If the format code contains only # placeholders to the left of this symbol, numbers less than 1 begin with a decimal separator. To always display a leading zero with fractional numbers, use 0 as a placeholder for the first digit to the left of the decimal separator.</paragraph><paragraph role="paragraph"><emph>%:</emph> Multiplies the number by 100 and inserts the percent sign (%) where the number appears in the format code.</paragraph><paragraph role="paragraph"><emph>E- E+ e- e+ :</emph> If the format code contains at least one digit placeholder (0 or #) to the right of the symbol E-, E+, e-, or e+, the number is formatted in the scientific or exponential format. The letter E or e is inserted between the number and the exponent. The number of placeholders for digits to the right of the symbol determines the number of digits in the exponent.</paragraph><paragraph role="paragraph">If the exponent is negative, a minus sign is displayed directly before an exponent with E-, E+, e-, e+. If the exponent is positive, a plus sign is only displayed before exponents with E+ or e+.</paragraph><paragraph role="paragraph">The thousands delimiter is displayed if the format code contains the delimiter enclosed by digit placeholders (0 or #).</paragraph><paragraph role="paragraph">The use of a period as a thousands and decimal separator is dependent on the regional setting. When you enter a number directly in Basic source code, always use a period as decimal delimiter. The actual character displayed as a decimal separator depends on the number format in your system settings.</paragraph><paragraph role="paragraph"><emph>- + $ ( ) space:</emph> A plus (+), minus (-), dollar ($), space, or brackets entered directly in the format code is displayed as a literal character.</paragraph><paragraph role="paragraph">To display characters other than the ones listed here, you must precede it by a backslash (\), or enclose it in quotation marks (" ").</paragraph><paragraph role="paragraph">\ : The backslash displays the next character in the format code.</paragraph><paragraph role="paragraph">Characters in the format code that have a special meaning can only be displayed as literal characters if they are preceded by a backslash. The backslash itself is not displayed, unless you enter a double backslash (\\) in the format code.</paragraph><paragraph role="paragraph">Characters that must be preceded by a backslash in the format code in order to be displayed as literal characters are date- and time-formatting characters (a, c, d, h, m, n, p, q, s, t, w, y, /, :), numeric-formatting characters (#, 0, %, E, e, comma, period), and string-formatting characters (@, &amp;, &lt;, &gt;, !).</paragraph><paragraph role="paragraph">You can also use the following predefined number formats. Except for "General Number", all of the predefined format codes return the number as a decimal number with two decimal places.</paragraph><paragraph role="paragraph">If you use predefined formats, the name of the format must be enclosed in quotation marks.</paragraph><paragraph role="heading" level="2">Predefined format</paragraph><paragraph role="paragraph"><emph>General Number:</emph> Numbers are displayed as entered.</paragraph><paragraph role="paragraph"><emph>Currency:</emph> Inserts a dollar sign in front of the number and encloses negative numbers in brackets.</paragraph><paragraph role="paragraph"><emph>Fixed:</emph> Displays at least one digit in front of the decimal separator.</paragraph><paragraph role="paragraph"><emph>Standard:</emph> Displays numbers with a thousands separator.</paragraph><paragraph role="paragraph"><emph>Percent:</emph> Multiplies the number by 100 and appends a percent sign to the number.</paragraph><paragraph role="paragraph"><emph>Scientific:</emph> Displays numbers in scientific format (for example, 1.00E+03 for 1000).</paragraph><paragraph role="paragraph">A format code can be divided into three sections that are separated by semicolons. The first part defines the format for positive values, the second part for negative values, and the third part for zero. If you only specify one format code, it applies to all numbers.</paragraph><embed href="text/sbasic/shared/00000003.xhp#languageformat"/><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleFormat</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Format</item><item type="operator">(</item><item type="number">6328.2</item><item type="operator">,</item> <item type="string">"##,##0.00"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="comment">' always use a period as decimal delimiter when you enter numbers in Basic source code.</item></paragraph><paragraph role="bascode">    <item type="comment">' displays for example 6,328.20 in English locale, 6.328,20 in German locale.</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�T��((text/sbasic/shared/03120315.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Join Function [Runtime]</title><filename>/text/sbasic/shared/03120315.xhp</filename></topic></meta><body><section id="join"><bookmark branch="index" id="bm_id3149416"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120315.xhp">Join Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a string from a number of substrings in a string array.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Join</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="identifier">Array</item><item type="operator">,</item> <item type="identifier">delimiter</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> A string array.</paragraph><paragraph role="paragraph"><emph>delimiter (optional):</emph> A string character that is used to separate the substrings in the resulting string. The default delimiter is the space character. If delimiter is a string of length zero "", the substrings are joined without separator.</paragraph><paragraph role="heading" level="2">Example:</paragraph><embed href="text/sbasic/shared/03120314.xhp#splitjoinex"/></body></helpdocument>
PK
Nw�XN�eY\\text/sbasic/shared/03120103.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Str Function [Runtime]</title><filename>/text/sbasic/shared/03120103.xhp</filename></topic></meta><body><section id="str"><bookmark branch="index" id="bm_id3143272"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120103.xhp">Str Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a numeric expression into a string.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Str</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression: </emph>Any numeric expression.</paragraph><paragraph role="paragraph">The <emph>Str</emph> function converts a numeric variable, or the result of a calculation into a string. Negative numbers are preceded by a minus sign. Positive numbers are preceded by a space (instead of the plus sign).</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleStr</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="number">123.123</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">LTrim</item><item type="operator">(</item><item type="identifier">Str</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sVar</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Str</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X]��@@text/sbasic/shared/03010305.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>RGB Function [Runtime]</title><filename>/text/sbasic/shared/03010305.xhp</filename></topic></meta><body><section id="rgb"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010305.xhp">RGB Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a <link href="text/sbasic/shared/00000003.xhp#farbcodes">long integer color value</link> consisting of red, green, and blue components.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">RGB</item> <item type="operator">(</item><item type="identifier">Red</item><item type="operator">,</item> <item type="identifier">Green</item><item type="operator">,</item> <item type="identifier">Blue</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>Red</emph>: Any integer expression that represents the red component (0-255) of the composite color.</paragraph><paragraph role="paragraph"><emph>Green</emph>: Any integer expression that represents the green component (0-255) of the composite color.</paragraph><paragraph role="paragraph"><emph>Blue</emph>: Any integer expression that represents the blue component (0-255) of the composite color.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleColor</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lVar</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lVar</item> <item type="operator">=</item> <item type="identifier">rgb</item><item type="operator">(</item><item type="number">128</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="number">200</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"The color "</item> <item type="operator">&amp;</item> <item type="identifier">lVar</item> <item type="operator">&amp;</item> <item type="string">" consists of:"</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"red= "</item> <item type="operator">&amp;</item> <item type="identifier">red</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"green= "</item> <item type="operator">&amp;</item> <item type="identifier">green</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"blue= "</item> <item type="operator">&amp;</item> <item type="identifier">blue</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">,</item> <item type="number">64</item><item type="operator">,</item><item type="string">"colors"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X EP��text/sbasic/shared/03103300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Option Explicit Statement [Runtime]</title><filename>/text/sbasic/shared/03103300.xhp</filename></topic></meta><body><section id="optionexplicit"><bookmark branch="index" id="bm_id3145090"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103300.xhp">Option Explicit Statement [Runtime]</link></paragraph><paragraph role="paragraph">Specifies that every variable in the program code must be explicitly declared with the Dim statement.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Option</item> <item type="keyword">Explicit</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="warning">This statement must be added before the executable program code in a module.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Option</item> <item type="keyword">Explicit</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleExplicit</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="string">"Las Vegas"</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">i</item><item type="operator">%</item> <item type="operator">=</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">10</item> <item type="comment">' This results in a run-time error</item></paragraph><paragraph role="bascode">        <item type="comment">Rem</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">i</item><item type="operator">%</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X��{�f�ftext/sbasic/shared/01170101.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>General</title><filename>/text/sbasic/shared/01170101.xhp</filename></topic></meta><body><section id="allgemein"><paragraph role="heading" level="1"><link href="text/sbasic/shared/01170101.xhp">General</link></paragraph><paragraph role="paragraph">Define the properties for the selected control or dialog. The available properties depend on the type of control selected. The following properties therefore are not available for every type of control.</paragraph></section><sort order="asc"><section id="Section64"><paragraph role="heading" level="2">Alignment</paragraph><paragraph role="paragraph"><ahelp hid="HID_PROP_IMAGE_ALIGN">Specify the alignment option for the selected control.</ahelp></paragraph></section><section id="Section63"><paragraph role="heading" level="2">AutoFill</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to enable the AutoFill function for the selected control. </ahelp></paragraph></section><section id="Section62"><paragraph role="heading" level="2">Background color</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the background color for the current control.</ahelp></paragraph></section><section id="Section61"><paragraph role="heading" level="2">Large change</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the number of units to scroll when a user clicks in the area between the slider and the arrows on a scrollbar.</ahelp></paragraph></section><section id="Section60"><paragraph role="heading" level="2">Border</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the border type for the current control.</ahelp></paragraph></section><section id="Section59"><paragraph role="heading" level="2">Button type</paragraph><paragraph role="paragraph"><ahelp hid=".">Select a button type. Button types determine what type of action is initiated.</ahelp></paragraph></section><section id="Section58"><paragraph role="heading" level="2">Character set</paragraph><paragraph role="paragraph"><ahelp hid=".">Select the font to be used for displaying the contents of the current control.</ahelp></paragraph></section><section id="Section57"><paragraph role="heading" level="2">Currency symbol</paragraph><paragraph role="paragraph"><ahelp hid=".">Enter the currency symbol to be used for currency controls.</ahelp></paragraph></section><section id="Section44"><bookmark branch="hid/EXTENSIONS_HID_PROP_DATE" id="bm_id856349"/><paragraph role="heading" level="2">Date</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the default date to be shown in the Date control.</ahelp></paragraph></section><section id="Section56"><paragraph role="heading" level="2">Date format</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the desired format for a date control. A date control interprets the user input depending on this format setting.</ahelp></paragraph></section><section id="Section55"><paragraph role="heading" level="2">Date max.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the upper limit for a date control.</ahelp></paragraph></section><section id="Section54"><paragraph role="heading" level="2">Date min.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the lower limit for a date control.</ahelp></paragraph></section><section id="Section53"><paragraph role="heading" level="2">Decimal accuracy</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the number of decimal places displayed for a numerical or currency control.</ahelp></paragraph></section><section id="Section52"><paragraph role="heading" level="2">Default button</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to make the current button control the default selection. Pressing <emph>Return</emph> in the dialog activates the default button.</ahelp></paragraph></section><section id="Section66"><bookmark branch="hid/EXTENSIONS_HID_PROP_REPEAT_DELAY" id="bm_id1620227"/><paragraph role="heading" level="2">Delay</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies the delay in milliseconds between scrollbar trigger events.</ahelp> A trigger event occurs when you click a scrollbar arrow or click the background area in a scrollbar. Repeated trigger events occur if you keep the mouse button pressed when you click a scrollbar arrow or background area in a scrollbar. If you want, you can include valid time units with the number that you enter, for example, 2 s or 500 ms.</paragraph></section><section id="Section51"><paragraph role="heading" level="2">Dropdown</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to enable the dropdown option for list or combo box controls. A dropdown control field has an arrow button which you can click to open a list of the existing form entries.</ahelp></paragraph></section><section id="Section50"><paragraph role="heading" level="2">Enabled</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to enable the control. If the control is disabled, it is grayed out in the dialog.</ahelp></paragraph></section><section id="Section49"><paragraph role="heading" level="2">Edit mask</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the edit mask for a pattern control. This is a character code that defines the input format for the control.</ahelp></paragraph><paragraph role="paragraph">You need to specify a masking character for each input character of the edit mask to restrict the input to the values that are listed in the following table:</paragraph><table><tablerow><tablecell><paragraph role="tablehead"> Character </paragraph></tablecell><tablecell><paragraph role="tablehead">Meaning</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">L</paragraph></tablecell><tablecell><paragraph role="tablecontent">A text constant. This character cannot be modified by the user. </paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">a</paragraph></tablecell><tablecell><paragraph role="tablecontent">The characters a-z can be entered here. If a capital letter is entered, it is automatically converted to a lowercase letter.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">A</paragraph></tablecell><tablecell><paragraph role="tablecontent">The characters A-Z can be entered here. If a lowercase letter is entered, it is automatically converted to a capital letter</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">c</paragraph></tablecell><tablecell><paragraph role="tablecontent">The characters a-z and 0-9 can be entered here. If a capital letter is entered, it is automatically converted to a lowercase letter.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">C</paragraph></tablecell><tablecell><paragraph role="tablecontent">The characters a-z and 0-9 can be entered here. If a lowercase letter is entered, it is automatically converted to a capital letter</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">N</paragraph></tablecell><tablecell><paragraph role="tablecontent">Only the characters 0-9 can be entered.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">x</paragraph></tablecell><tablecell><paragraph role="tablecontent">All printable characters can be entered.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">X</paragraph></tablecell><tablecell><paragraph role="tablecontent">All printable characters can be entered. If a lowercase letter is used, it is automatically converted to a capital letter.</paragraph></tablecell></tablerow></table></section><section id="Section72"><bookmark branch="hid/EXTENSIONS_HID_PROP_EDITABLE" id="bm_id533463"/><paragraph role="heading" level="2">Editable</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies whether the nodes of the tree control are editable.</ahelp></paragraph><paragraph role="paragraph">The default value is FALSE.</paragraph></section><section id="Section48"><paragraph role="heading" level="2">Graphics</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the source of the graphics for a button or an image control. Click "..." to select a file.</ahelp></paragraph></section><section id="Section47"><bookmark branch="hid/EXTENSIONS_HID_PROP_HEIGHT" id="bm_id8097170"/><paragraph role="heading" level="2">Height</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the height of the current control or the dialog.</ahelp></paragraph></section><section id="Section46"><paragraph role="heading" level="2">Help text</paragraph><paragraph role="paragraph"><ahelp hid=".">Enter a help text that is displayed as a tip (bubble help) when the mouse rests over the control.</ahelp></paragraph></section><section id="Section45"><paragraph role="heading" level="2">Help URL</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the help URL that is called when you press F1 while the focus is on a particular control. For example, use the format HID:1234 to call the Help-ID with the number 1234.</ahelp></paragraph><paragraph role="paragraph">Set the environment variable HELP_DEBUG to 1 to view the Help-IDs as extended help tips.</paragraph></section><section id="Section43"><paragraph role="heading" level="2">Incr./decrement value</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the increment and decrement interval for spin button controls.</ahelp></paragraph></section><section id="Section73"><bookmark branch="hid/EXTENSIONS_HID_PROP_INVOKES_STOP_NOT_EDITING" id="bm_id9407025"/><paragraph role="heading" level="2">Invokes stop mode editing</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies what happens when editing is interrupted by selecting another node in the tree, a change in the tree's data, or by some other means.</ahelp></paragraph><paragraph role="paragraph">Setting this property to TRUE causes the changes to be automatically saved when editing is interrupted. FALSE means that editing is canceled and changes are lost.</paragraph><paragraph role="paragraph">The default value is FALSE.</paragraph></section><section id="Section42"><paragraph role="heading" level="2">Label</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies the label of the current control. The label is displayed along with the control.</ahelp></paragraph><paragraph role="paragraph">You can create multi-line <emph>labels</emph> by inserting manual line breaks in the label using <emph>Shift+Enter</emph>.</paragraph></section><section id="Section41"><paragraph role="heading" level="2">Line Count</paragraph><paragraph role="paragraph"><ahelp hid=".">Enter the number of lines to be displayed for a list control. For combo boxes, this setting is only active if the dropdown option is enabled. </ahelp></paragraph></section><section id="Section3"><paragraph role="heading" level="2">Scrollbar</paragraph><paragraph role="paragraph">Adds the scrollbar type that you specify to a text box.</paragraph></section><section id="Section40"><paragraph role="heading" level="2">Small change</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the number of units to scroll when a user clicks an arrow on a scrollbar.</ahelp></paragraph></section><section id="Section39"><paragraph role="heading" level="2">List entries</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the entries for a list control. One line takes one list entry. Press <emph>Shift+Enter</emph> to insert a new line.</ahelp></paragraph></section><section id="Section38"><paragraph role="heading" level="2">Literal mask</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the initial values to be displayed in a pattern control. This helps the user to identify which values are allowed in a pattern control. The literal mask is restricted by the format specified by the edit mask.</ahelp></paragraph></section><section id="Section37"><paragraph role="heading" level="2">Manual line break</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to allow manual line breaks inside multiline controls.</ahelp></paragraph></section><section id="Section36"><paragraph role="heading" level="2">Max. text length</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the maximum number of characters that the user can enter.</ahelp></paragraph></section><section id="Section35"><paragraph role="heading" level="2">Multiline Input</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to allow the input of multiple lines in the control. Press Enter to insert a manual line break in the control.</ahelp></paragraph></section><section id="Section34"><paragraph role="heading" level="2">Multiselection</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to allow the selection of multiple entries in list controls.</ahelp></paragraph></section><section id="Section33"><paragraph role="heading" level="2">Name</paragraph><paragraph role="paragraph"><ahelp hid=".">Insert a name for the current control. This name is used to identify the control.</ahelp></paragraph></section><section id="Section32"><paragraph role="heading" level="2">Order</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the order in which the controls receive the focus when the Tab key is pressed in the dialog.</ahelp> On entering a dialog, the control with the lowest order (0) receives the focus. Pressing the <emph>Tab</emph> key the successively focusses the other controls as specified by their order number.</paragraph><paragraph role="paragraph">Initially, the controls receive numbers in the order they are added to the dialog. You can change the order numbers for controls. $[officename] Basic updates the order numbers automatically to avoid duplicate numbers. Controls that cannot be focused are also assigned a value but these controls are skipped when using the Tab key.</paragraph></section><section id="Section31"><paragraph role="heading" level="2">Orientation</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the orientation for a scrollbar control.</ahelp></paragraph></section><section id="Section30"><bookmark branch="hid/EXTENSIONS_HID_PROP_STEP" id="bm_id8616901"/><paragraph role="heading" level="2">Page (step)</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the number of the dialog page to which the current control is assigned or the page number of the dialog you want to edit.</ahelp> If a dialog has only one page set its <emph>Page (Step)</emph> value to <emph>0</emph>.</paragraph><paragraph role="paragraph">Select <emph>Page (Step)</emph> = 0 to make a control visible on every dialog page.</paragraph><paragraph role="paragraph">To switch between dialog pages at run time, you need to create a macro that changes the value of <emph>Page (Step)</emph>.</paragraph></section><section id="Section29"><paragraph role="heading" level="2">Password characters</paragraph><paragraph role="paragraph"><ahelp hid=".">Enter a character to be displayed instead of the characters that are typed. This can be used for entering passwords in text controls.</ahelp></paragraph></section><section id="Section28"><bookmark branch="hid/EXTENSIONS_HID_PROP_POSITIONX" id="bm_id8632160"/><paragraph role="heading" level="2">PositionX</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the distance of the current control from the left side of the dialog.</ahelp></paragraph></section><section id="Section27"><bookmark branch="hid/EXTENSIONS_HID_PROP_POSITIONY" id="bm_id7651905"/><paragraph role="heading" level="2">PositionY</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the distance of the current control from the top of the dialog.</ahelp></paragraph></section><section id="Section26"><paragraph role="heading" level="2">Prefix symbol</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to display the currency symbol prefix in currency controls when a number was entered.</ahelp></paragraph></section><section id="Section25"><paragraph role="heading" level="2">Print</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to include the current control in a document's printout.</ahelp></paragraph></section><section id="Section24"><paragraph role="heading" level="2">Progress value</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify a progress value for a progress bar control.</ahelp></paragraph></section><section id="Section23"><paragraph role="heading" level="2">Progress value max.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the maximum value of a progress bar control.</ahelp></paragraph></section><section id="Section22"><paragraph role="heading" level="2">Progress value min.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the minimum value of a progress bar control.</ahelp></paragraph></section><section id="Section21"><paragraph role="heading" level="2">Read-only</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to prevent the user from editing the value of the current control. The control is enabled and can be focussed but not modified.</ahelp></paragraph></section><section id="Section65"><bookmark branch="hid/EXTENSIONS_HID_PROP_REPEAT" id="bm_id2982573"/><paragraph role="heading" level="2">Repeat</paragraph><paragraph role="paragraph"><ahelp hid=".">Repeats trigger events when you keep the mouse button pressed on a control such as a spin button.</ahelp></paragraph></section><section id="Section71"><bookmark branch="hid/EXTENSIONS_HID_PROP_ROOT_DISPLAYED" id="bm_id1578722"/><paragraph role="heading" level="2">Root displayed</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies if the root node of the tree control is displayed.</ahelp></paragraph><paragraph role="paragraph">If Root displayed is set to FALSE, the root node of a model is no longer a valid node for the tree control and can't be used with any method of XTreeControl.</paragraph><paragraph role="paragraph">The default value is TRUE.</paragraph></section><section id="Section74"><paragraph role="heading" level="2">Row height</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies the height of each row of a tree control, in pixels.</ahelp></paragraph><paragraph role="paragraph">If the specified value is less than or equal to zero, the row height is the maximum height of all rows.</paragraph><paragraph role="paragraph">The default value is 0.</paragraph></section><section id="Section20"><paragraph role="heading" level="2">Scale</paragraph><paragraph role="paragraph"><ahelp hid=".">Scales the image to fit the control size.</ahelp></paragraph></section><section id="Scrollbar"><bookmark branch="hid/EXTENSIONS_HID_PROP_HSCROLL" id="bm_id3149895"/><bookmark branch="hid/EXTENSIONS_HID_PROP_VSCROLL" id="bm_id3149517"/><bookmark branch="hid/EXTENSIONS_HID_PROP_SHOW_SCROLLBARS" id="bm_id6053651"/><paragraph role="heading" level="2">Scrollbar</paragraph><paragraph role="paragraph"><ahelp hid=".">Adds the scrollbar type that you specify to a text box.</ahelp></paragraph></section><section id="Section19"><bookmark branch="hid/EXTENSIONS_HID_PROP_SCROLLVALUE" id="bm_id3150294"/><paragraph role="heading" level="2">Scroll value</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the initial value of a scrollbar control. This determines the position of the scrollbar slider.</ahelp></paragraph></section><section id="Section18"><bookmark branch="hid/EXTENSIONS_HID_PROP_SCROLLVALUE_MAX" id="bm_id3148873"/><paragraph role="heading" level="2">Scroll value max.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the maximum value of a scrollbar control.</ahelp></paragraph></section><section id="Section67"><bookmark branch="hid/EXTENSIONS_HID_PROP_SCROLLVALUE_MIN" id="bm_id6626483"/><paragraph role="heading" level="2">Scroll value min.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the minimum value of a scrollbar control.</ahelp></paragraph></section><section id="Section69"><bookmark branch="hid/EXTENSIONS_HID_PROP_SHOWS_HANDLES" id="bm_id7286904"/><paragraph role="heading" level="2">Show handles</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies whether the handles of the nodes should be displayed.</ahelp></paragraph><paragraph role="paragraph">The handles are dotted lines that visualize the hierarchy of the tree control.</paragraph><paragraph role="paragraph">The default value is TRUE.</paragraph></section><section id="Section70"><bookmark branch="hid/EXTENSIONS_HID_PROP_SHOWS_ROOT_HANDLES" id="bm_id2047486"/><paragraph role="heading" level="2">Show root handles</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies whether the handles of the nodes should also be displayed at root level.</ahelp></paragraph><paragraph role="paragraph">The default value is TRUE.</paragraph></section><section id="Section17"><paragraph role="heading" level="2">Selection</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies the sequence of the selected items, where "0" corresponds to the first item. To select more than one item, Multiselection must be enabled.</ahelp></paragraph><paragraph role="paragraph">Click the <emph>...</emph> button to open the <emph>Selection</emph> dialog.</paragraph><paragraph role="paragraph"><ahelp hid=".">Click the item or items that you want to select. To select more than one item, ensure that the Multiselection option is selected.</ahelp></paragraph></section><section id="Section68"><bookmark branch="hid/EXTENSIONS_HID_PROP_SELECTION_TYPE" id="bm_id2208929"/><paragraph role="heading" level="2">Selection type</paragraph><paragraph role="paragraph"><ahelp hid=".">Specifies the selection mode that is enabled for this tree control.</ahelp></paragraph></section><section id="Section16"><paragraph role="heading" level="2">Spin Button</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to add spin buttons to a numerical, currency, date, or time control to allow increasing and decreasing the input value using arrow buttons.</ahelp></paragraph></section><section id="Section15"><paragraph role="heading" level="2">State</paragraph><paragraph role="paragraph"><ahelp hid=".">Select the selection state of the current control.</ahelp></paragraph></section><section id="Section14"><paragraph role="heading" level="2">Strict format</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to only allow valid characters to be entered in a numerical, currency, date, or time control.</ahelp></paragraph></section><section id="Section13"><paragraph role="heading" level="2">Tabstop</paragraph><paragraph role="paragraph"><ahelp hid=".">Select the focus behavior of the current control when using the <emph>Tab</emph> key.</ahelp></paragraph><table><tablerow><tablecell><paragraph role="tablecontent">Default</paragraph></tablecell><tablecell><paragraph role="tablecontent">Only input controls receive the focus when using the <emph>Tab</emph> key. Controls without input like caption controls are omitted.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">No</paragraph></tablecell><tablecell><paragraph role="tablecontent">When using the tab key focusing skips the control.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Yes</paragraph></tablecell><tablecell><paragraph role="tablecontent">The control can be selected with the Tab key.</paragraph></tablecell></tablerow></table></section><section id="Section12"><paragraph role="heading" level="2">Thousands Separator</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to display thousands separator characters in numerical and currency controls.</ahelp></paragraph></section><section id="Section11"><paragraph role="heading" level="2">Time Format</paragraph><paragraph role="paragraph"><ahelp hid=".">Select the format to be used for time controls.</ahelp></paragraph></section><section id="Section10"><paragraph role="heading" level="2">Time max.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the maximum time value for a time control.</ahelp></paragraph></section><section id="Section9"><paragraph role="heading" level="2">Time min.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the minimum time value for a time control.</ahelp></paragraph></section><section id="Section8"><paragraph role="heading" level="2">Title</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the title of the dialog. Click the border of the dialog to select the dialog.</ahelp></paragraph><paragraph role="paragraph"><emph>Titles</emph> are only used for labeling a dialog and can only contain one line. Please note that if you work with macros, controls are only called through their <emph>Name</emph> property.</paragraph></section><section id="Section7"><paragraph role="heading" level="2">Tristate</paragraph><paragraph role="paragraph"><ahelp hid=".">Select "Yes" to allow a check box to have three states (checked, unchecked, and grayed out) instead of two (checked and unchecked).</ahelp></paragraph></section><section id="Section6"><paragraph role="heading" level="2">Value</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the value for the current control.</ahelp></paragraph></section><section id="Section5"><paragraph role="heading" level="2">Value max.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the maximum value for the current control.</ahelp></paragraph></section><section id="Section4"><paragraph role="heading" level="2">Value min.</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the minimum value for the current control.</ahelp></paragraph></section><section id="Section2"><paragraph role="heading" level="2">Visible size</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the length of the slider of a scrollbar control.</ahelp></paragraph></section><section id="Section1"><paragraph role="heading" level="2">Width</paragraph><paragraph role="paragraph"><ahelp hid=".">Specify the width of the current control or dialog.</ahelp></paragraph></section></sort></body></helpdocument>
PK
Mw�X��AAtext/sbasic/shared/03020301.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Eof Function [Runtime]</title><filename>/text/sbasic/shared/03020301.xhp</filename></topic></meta><body><section id="eof"><bookmark branch="index" id="bm_id3154598"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020301.xhp">Eof Function [Runtime]</link></paragraph><paragraph role="paragraph">Determines if the file pointer has reached the end of a file.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Eof</item> <item type="operator">(</item><item type="identifier">intexpression</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Intexpression:</emph> Any integer expression that evaluates to the number of an open file.</paragraph><paragraph role="paragraph">Use EOF to avoid errors when you attempt to get input past the end of a file. When you use the Input or Get statement to read from a file, the file pointer is advanced by the number of bytes read. When the end of a file is reached, EOF returns the value "True" (-1).</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err52"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWorkWithAFile</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sLine</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sMsg</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"First line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"Another line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">While</item> <item type="keyword">Not</item> <item type="identifier">eof</item><item type="operator">(</item><item type="identifier">iNumber</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="identifier">sLine</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sLine</item> <item type="operator">&lt;</item><item type="operator">&gt;</item><item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="identifier">sMsg</item> <item type="operator">=</item> <item type="identifier">sMsg</item> <item type="operator">&amp;</item> <item type="identifier">sLine</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Wend</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sMsg</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X��U�8	8	text/sbasic/shared/01050300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Manage Breakpoints</title><filename>/text/sbasic/shared/01050300.xhp</filename></topic></meta><body><section id="haltepunkte"><bookmark branch="hid/BASCTL_HID_BASICIDE_BRKDLG" id="bm_id3145090"/><bookmark branch="hid/BASCTL_HID_BASICIDE_BRKPROPS" id="bm_id3147291"/><bookmark branch="hid/modules/BasicIDE/ui/managebreakpoints/ManageBreakpointsDialog" id="bm_id3149656"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01050300.xhp">Manage Breakpoints</link></paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/managebreakpoints/ManageBreakpointsDialog">Specifies the options for breakpoints.</ahelp></paragraph></section><bookmark branch="hid/modules/BasicIDE/ui/managebreakpoints/entries" id="bm_id3149656"/><paragraph role="heading" level="2">Breakpoints</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/managebreakpoints/entries">Enter the line number for a new breakpoint, then click <emph>New</emph>.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/managebreakpoints/active" id="bm_id3156422"/><bookmark branch="hid/BASCTL_HID_BASICIDE_ACTIV" id="bm_id3150870"/><paragraph role="heading" level="2">Active</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/managebreakpoints/active">Activates or deactivates the current breakpoint.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/managebreakpoints/pass-nospin" id="bm_id3153768"/><paragraph role="heading" level="2">Pass Count</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/managebreakpoints/pass-nospin">Specify the number of loops to perform before the breakpoint takes effect.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/managebreakpoints/new" id="bm_id3150012"/><paragraph role="heading" level="2">New</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/managebreakpoints/new">Creates a breakpoint on the line number specified.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/managebreakpoints/delete" id="bm_id3159156"/><paragraph role="heading" level="2">Delete</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/managebreakpoints/delete">Deletes the selected breakpoint.</ahelp></paragraph></body></helpdocument>
PK
Mw�X+�kggtext/sbasic/shared/03010304.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>QBColor Function [Runtime]</title><filename>/text/sbasic/shared/03010304.xhp</filename></topic></meta><body><section id="qbcolor"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010304.xhp">QBColor Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the <link href="text/sbasic/shared/03010305.xhp">RGB</link> color code of the color passed as a color value through an older MS-DOS based programming system.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">QBColor</item> <item type="operator">(</item><item type="identifier">ColorNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>ColorNumber</emph>: Any integer expression that specifies the color value of the color passed from an older MS-DOS based programming system.</paragraph><paragraph role="paragraph"><emph>ColorNumber</emph> can be assigned the following values:</paragraph><paragraph role="paragraph">0 : Black</paragraph><paragraph role="paragraph">1 : Blue</paragraph><paragraph role="paragraph">2 : Green</paragraph><paragraph role="paragraph">3 : Cyan</paragraph><paragraph role="paragraph">4 : Red</paragraph><paragraph role="paragraph">5 : Magenta</paragraph><paragraph role="paragraph">6 : Yellow</paragraph><paragraph role="paragraph">7 : White</paragraph><paragraph role="paragraph">8 : Gray</paragraph><paragraph role="paragraph">9 : Light Blue</paragraph><paragraph role="paragraph">10 : Light Green</paragraph><paragraph role="paragraph">11 : Light Cyan</paragraph><paragraph role="paragraph">12 : Light Red</paragraph><paragraph role="paragraph">13 : Light Magenta</paragraph><paragraph role="paragraph">14 : Light Yellow</paragraph><paragraph role="paragraph">15 : Bright White</paragraph><paragraph role="paragraph">This function is used only to convert from older MS-DOS based BASIC applications that use the above color codes. The function returns a long integer value indicating the color to be used in the $[officename] IDE.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleQBColor</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iColor</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">iColor</item> <item type="operator">=</item> <item type="number">7</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="string">"RGB= "</item> <item type="operator">&amp;</item> <item type="identifier">Red</item><item type="operator">(</item><item type="identifier">QBColor</item><item type="operator">(</item> <item type="identifier">iColor</item><item type="operator">)</item> <item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">":"</item> <item type="operator">&amp;</item> <item type="identifier">Blue</item><item type="operator">(</item><item type="identifier">QBColor</item><item type="operator">(</item> <item type="identifier">iColor</item><item type="operator">)</item> <item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">":"</item> <item type="operator">&amp;</item> <item type="identifier">Green</item><item type="operator">(</item><item type="identifier">QBColor</item><item type="operator">(</item> <item type="identifier">iColor</item><item type="operator">)</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">stext</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Color "</item> <item type="operator">&amp;</item> <item type="identifier">iColor</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X@�OGtext/sbasic/shared/03010302.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Green Function [Runtime]</title><filename>/text/sbasic/shared/03010302.xhp</filename></topic></meta><body><section id="green"><bookmark branch="index" id="bm_id3148947"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010302.xhp">Green Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the Green component of the given color code.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Green</item> <item type="operator">(</item><item type="identifier">Color</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>Color</emph>: Long integer expression that specifies a <link href="text/sbasic/shared/00000003.xhp#farbcodes">color code</link> for which to return the Green component.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleColor</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lVar</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lVar</item> <item type="operator">=</item> <item type="identifier">rgb</item><item type="operator">(</item><item type="number">128</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="number">200</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"The color "</item> <item type="operator">&amp;</item> <item type="identifier">lVar</item> <item type="operator">&amp;</item> <item type="string">" contains the components:"</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"red = "</item> <item type="operator">&amp;</item> <item type="identifier">red</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"green = "</item> <item type="operator">&amp;</item> <item type="identifier">green</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"blue = "</item> <item type="operator">&amp;</item> <item type="identifier">blue</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">,</item> <item type="number">64</item><item type="operator">,</item><item type="string">"colors"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XTr�Q�	�	text/sbasic/shared/03100500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CInt Function [Runtime]</title><filename>/text/sbasic/shared/03100500.xhp</filename></topic></meta><body><section id="cint"><bookmark branch="index" id="bm_id3149346"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100500.xhp">CInt Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts any string or numeric expression to an integer.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CInt</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any numeric expression that you want to convert. If the <emph>Expression</emph> exceeds the value range between -32768 and 32767, $[officename] Basic reports an overflow error. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.</paragraph><paragraph role="paragraph">This function always rounds the fractional part of a number to the nearest integer.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCountryConvert</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CDbl</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CInt</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CLng</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��  text/sbasic/shared/03110100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Comparison Operators [Runtime]</title><filename>/text/sbasic/shared/03110100.xhp</filename></topic></meta><body><section id="operatoren"><bookmark branch="index" id="bm_id3150682"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03110100.xhp">Comparison Operators [Runtime]</link></paragraph><paragraph role="paragraph">Comparison operators compare two expressions. The result is returned as a Boolean expression that determines if the comparison is True (-1) or False (0).</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="operator">{</item> <item type="operator">=</item> <item type="operator">|</item> <item type="operator">&lt;</item> <item type="operator">|</item> <item type="operator">&gt;</item> <item type="operator">|</item> <item type="operator">&lt;</item><item type="operator">=</item> <item type="operator">|</item> <item type="operator">&gt;</item><item type="operator">=</item> <item type="operator">}</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Boolean expression that specifies the result of the comparison (True, or False)</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any numeric values or strings that you want to compare.</paragraph><paragraph role="heading" level="2">Comparison operators</paragraph><paragraph role="paragraph">= : Equal to</paragraph><paragraph role="paragraph">&lt; : Less than</paragraph><paragraph role="paragraph">&gt; : Greater than</paragraph><paragraph role="paragraph">&lt;= : Less than or equal to</paragraph><paragraph role="paragraph">&gt;= : Greater than or equal to</paragraph><paragraph role="paragraph">&lt;&gt; : Not equal to</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleUnequal</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sRoot</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="comment">' Root directory for file in and output</item></paragraph><paragraph role="bascode">    <item type="identifier">sRoot</item> <item type="operator">=</item> <item type="string">"c:\"</item></paragraph><paragraph role="bascode">    <item type="identifier">sFile</item> <item type="operator">=</item> <item type="identifier">Dir$</item><item type="operator">(</item> <item type="identifier">sRoot</item> <item type="operator">,</item><item type="number">22</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">sFile</item> <item type="operator">&lt;</item><item type="operator">&gt;</item> <item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">        <item type="keyword">Do</item></paragraph><paragraph role="bascode">            <item type="identifier">MsgBox</item> <item type="identifier">sFile</item></paragraph><paragraph role="bascode">            <item type="identifier">sFile</item> <item type="operator">=</item> <item type="identifier">Dir$</item></paragraph><paragraph role="bascode">        <item type="keyword">Loop</item> <item type="keyword">Until</item> <item type="identifier">sFile</item> <item type="operator">=</item> <item type="string">""</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�Bʃ��text/sbasic/shared/03102900.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>LBound Function [Runtime]</title><filename>/text/sbasic/shared/03102900.xhp</filename></topic></meta><body><section id="lbound"><bookmark branch="index" id="bm_id3156027"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102900.xhp">LBound Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the lower boundary of an array.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">LBound</item> <item type="operator">(</item><item type="identifier">ArrayName</item> <item type="identifier">[, Dimension]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>ArrayName:</emph> Name of the array for which you want to return the upper (<emph>Ubound</emph>) or the lower (<emph>LBound</emph>) boundary of the array dimension.</paragraph><paragraph role="paragraph"><emph>[Dimension]:</emph> Integer that specifies which dimension to return the upper (<emph>Ubound</emph>) or the lower (<emph>LBound</emph>) boundary for. If a value is not specified, the first dimension is assumed.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err9"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleUboundLbound</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item><item type="operator">(</item><item type="number">10</item> <item type="keyword">To</item> <item type="number">20</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">LBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">UBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleUboundLbound2</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item><item type="operator">(</item><item type="number">10</item> <item type="keyword">To</item> <item type="number">20</item><item type="operator">,</item><item type="number">5</item> <item type="keyword">To</item> <item type="number">70</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">LBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item> <item type="comment">' Returns 10</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">UBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item> <item type="comment">' Returns 20</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">LBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item><item type="number">2</item><item type="operator">)</item> <item type="comment">' Returns 5</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">UBound</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item><item type="number">2</item><item type="operator">)</item> <item type="comment">' Returns 70</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X��F

text/sbasic/shared/01170103.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Events</title><filename>/text/sbasic/shared/01170103.xhp</filename></topic></meta><body><section id="ereignisse"><paragraph role="heading" level="1"><link href="text/sbasic/shared/01170103.xhp">Events</link></paragraph><paragraph role="paragraph">Define event assignments for the selected control or dialog. The available events depend on the type of control selected.</paragraph></section><paragraph role="heading" level="2">When receiving focus</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_FOCUSGAINED">This event takes place if a control receives the focus.</ahelp></paragraph><paragraph role="heading" level="2">When losing focus</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_FOCUSLOST">This event takes place if a control loses the focus.</ahelp></paragraph><paragraph role="heading" level="2">Key pressed</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_KEYTYPED">This event occurs when the user presses any key while the control has the focus.</ahelp></paragraph><paragraph role="heading" level="2">Key released</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_KEYUP">This event occurs when the user releases a key while the control has the focus.</ahelp></paragraph><paragraph role="heading" level="2">Modified</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_CHANGED">This event takes place, when the control loses the focus and the contents of the control were changed since it lost the focus.</ahelp></paragraph><paragraph role="heading" level="2">Text modified</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_TEXTCHANGED">This event takes place if you enter or modify a text in an input field.</ahelp></paragraph><paragraph role="heading" level="2">Item status changed</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_ITEMSTATECHANGED">This event takes place if the status of the control field is changed, for example, from checked to unchecked.</ahelp></paragraph><paragraph role="heading" level="2">Mouse inside</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_MOUSEENTERED">This event takes place when the mouse enters the control.</ahelp></paragraph><paragraph role="heading" level="2">Mouse moved while key pressed</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_MOUSEDRAGGED">This event takes place when the mouse is dragged while a key is pressed.</ahelp></paragraph><paragraph role="heading" level="2">Mouse moved</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_MOUSEMOVED">This event takes place when the mouse moves over the control.</ahelp></paragraph><paragraph role="heading" level="2">Mouse button pressed</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_MOUSEPRESSED">This event takes place when the mouse button is pressed while the mouse pointer is on the control.</ahelp></paragraph><paragraph role="heading" level="2">Mouse button released</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_MOUSERELEASED">This event takes place when the mouse button is released while the mouse pointer is on the control.</ahelp></paragraph><paragraph role="heading" level="2">Mouse outside</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_MOUSEEXITED">This event takes place when the mouse leaves the control.</ahelp></paragraph><paragraph role="heading" level="2">While adjusting</paragraph><paragraph role="paragraph"><ahelp hid="HID_EVT_MOUSEEXITED">This event takes place when a scrollbar is being dragged.</ahelp></paragraph></body></helpdocument>
PK
Mw�XWڨ�LLtext/sbasic/shared/03020100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Opening and Closing Files</title><filename>/text/sbasic/shared/03020100.xhp</filename></topic></meta><body><section id="oeffnen"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020100.xhp">Opening and Closing Files</link></paragraph></section><embed href="text/sbasic/shared/03020101.xhp#close"/><embed href="text/sbasic/shared/03020102.xhp#freefile"/><embed href="text/sbasic/shared/03020103.xhp#open"/><embed href="text/sbasic/shared/03020104.xhp#reset"/></body></helpdocument>
PK
Mw�X����text/sbasic/shared/03020000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>File I/O Functions</title><filename>/text/sbasic/shared/03020000.xhp</filename></topic></meta><body><section id="dateieinaus"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020000.xhp">File I/O Functions</link></paragraph><paragraph role="paragraph">Use File I/O functions to create and manage user-defined (data) files.</paragraph></section><paragraph role="paragraph">You can use these functions to support the creation of "relative" files, so that you can save and reload certain records by specifying their record number. File I/O functions can also help you manage your files by providing you with information such as file size, current path settings, or the creation date of a file or a directory.</paragraph><embed href="text/sbasic/shared/03020100.xhp#oeffnen"/><embed href="text/sbasic/shared/03020200.xhp#eingabeeinaus"/><embed href="text/sbasic/shared/03020400.xhp#organisation"/></body></helpdocument>
PK
Nw�X�N�kktext/sbasic/shared/03050300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Error Function [Runtime]</title><filename>/text/sbasic/shared/03050300.xhp</filename></topic></meta><body><section id="errorf"><bookmark branch="index" id="bm_id3159413"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03050300.xhp">Error Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the error message that corresponds to a given error code.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Error</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any numeric expression that contains the error code of the error message that you want to return.</paragraph><paragraph role="paragraph">If no parameters are passed, the Error function returns the error message of the most recent error that occurred during program execution.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#allerrors"/></body></helpdocument>
PK
Nw�Xj��	�	text/sbasic/shared/03100600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CLng Function [Runtime]</title><filename>/text/sbasic/shared/03100600.xhp</filename></topic></meta><body><section id="clng"><bookmark branch="index" id="bm_id3153311"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100600.xhp">CLng Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts any string or numeric expression to a long integer.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CLng</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any numerical expression that you want to convert. If the <emph>Expression</emph> lies outside the valid long integer range between -2.147.483.648 and 2.147.483.647, $[officename] Basic returns an overflow error. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.</paragraph><paragraph role="paragraph">This function always rounds the fractional part of a number to the nearest integer.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCountryConvert</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CDbl</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CInt</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CLng</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X+Ǽ�text/sbasic/shared/01020000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Syntax</title><filename>/text/sbasic/shared/01020000.xhp</filename></topic></meta><body><section id="daten"><paragraph role="heading" level="1"><link href="text/sbasic/shared/01020000.xhp">Syntax</link></paragraph><paragraph role="paragraph">This section describes the basic syntax elements of $[officename] Basic. For a detailed description please refer to the $[officename] Basic Guide which is available separately.</paragraph></section><embed href="text/sbasic/shared/01020100.xhp#variable"/><embed href="text/sbasic/shared/01020200.xhp#objekte"/><embed href="text/sbasic/shared/01020300.xhp#prozedur"/><embed href="text/sbasic/shared/01020500.xhp#biblio"/></body></helpdocument>
PK
Nw�X,�Ϫ��text/sbasic/shared/03103100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Let Statement [Runtime]</title><filename>/text/sbasic/shared/03103100.xhp</filename></topic></meta><body><section id="let"><bookmark branch="index" id="bm_id3147242"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103100.xhp">Let Statement [Runtime]</link></paragraph><paragraph role="paragraph">Assigns a value to a variable.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">[Let]</item> <item type="identifier">VarName</item><item type="operator">=</item><item type="identifier">Expression</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>VarName:</emph> Variable that you want to assign a value to. Value and variable type must be compatible.</paragraph><paragraph role="note">As in most BASIC dialects, the keyword <emph>Let</emph> is optional.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleLet</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="keyword">Let</item> <item type="identifier">sText</item> <item type="operator">=</item> <item type="string">"Las Vegas"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Len</item><item type="operator">(</item><item type="identifier">sText</item><item type="operator">)</item> <item type="comment">' returns 9</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��`dqqtext/sbasic/shared/03020401.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>ChDir Statement [Runtime]</title><filename>/text/sbasic/shared/03020401.xhp</filename></topic></meta><body><section id="chdir"><bookmark branch="index" id="bm_id3150178"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020401.xhp">ChDir Statement [Runtime]</link></paragraph><paragraph role="paragraph">Changes the current directory or drive.</paragraph></section><section id="i30692"><paragraph role="warning">This runtime statement currently does not work as documented. See <link href="http://www.openoffice.org/issues/show_bug.cgi?id=30692">this issue</link> for more information.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">ChDir</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that specifies the directory path or drive.</paragraph><paragraph role="note">If you only want to change the current drive, enter the drive letter followed by a colon.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err76"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleChDir</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sDir1</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">,</item> <item type="identifier">sDir2</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sDir1</item> <item type="operator">=</item> <item type="string">"c:\Test"</item></paragraph><paragraph role="bascode">    <item type="identifier">sDir2</item> <item type="operator">=</item> <item type="string">"d:\Private"</item></paragraph><paragraph role="bascode">    <item type="identifier">ChDir</item><item type="operator">(</item> <item type="identifier">sDir1</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CurDir</item></paragraph><paragraph role="bascode">    <item type="identifier">ChDir</item><item type="operator">(</item> <item type="identifier">sDir2</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CurDir</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X���jjtext/sbasic/shared/03102400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsEmpty Function [Runtime]</title><filename>/text/sbasic/shared/03102400.xhp</filename></topic></meta><body><section id="isempty"><bookmark branch="index" id="bm_id3153394"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102400.xhp">IsEmpty Function [Runtime]</link></paragraph><paragraph role="paragraph">Tests if a Variant variable contains the Empty value. The Empty value indicates that the variable is not initialized.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsEmpty</item> <item type="operator">(</item><item type="identifier">Var</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Var:</emph> Any variable that you want to test. If the Variant contains the Empty value, the function returns True, otherwise the function returns False.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleIsEmpty</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">Empty</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">IsEmpty</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">)</item> <item type="comment">' Returns True</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�Xd�"���text/sbasic/shared/03010301.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Blue Function [Runtime]</title><filename>/text/sbasic/shared/03010301.xhp</filename></topic></meta><body><section id="blue"><bookmark branch="index" id="bm_id3149180"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010301.xhp">Blue Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the blue component of the specified color code.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Blue</item> <item type="operator">(</item><item type="identifier">Color</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>Color value</emph>: Long integer expression that specifies any <link href="text/sbasic/shared/00000003.xhp#farbcodes">color code</link> for which to return the blue component.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleColor</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lVar</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lVar</item> <item type="operator">=</item> <item type="identifier">rgb</item><item type="operator">(</item><item type="number">128</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="number">200</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"The color "</item> <item type="operator">&amp;</item> <item type="identifier">lVar</item> <item type="operator">&amp;</item> <item type="string">" consists of:"</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"red= "</item> <item type="operator">&amp;</item> <item type="identifier">Red</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"green= "</item> <item type="operator">&amp;</item> <item type="identifier">Green</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"blue= "</item> <item type="operator">&amp;</item> <item type="identifier">Blue</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">,</item> <item type="number">64</item><item type="operator">,</item><item type="string">"colors"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X���i��text/sbasic/shared/03020413.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>RmDir Statement [Runtime]</title><filename>/text/sbasic/shared/03020413.xhp</filename></topic></meta><body><section id="rmdir"><bookmark branch="index" id="bm_id3148947"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020413.xhp">RmDir Statement [Runtime]</link></paragraph><paragraph role="paragraph">Deletes an existing directory from a data medium.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">RmDir</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that specifies the name and path of the directory that you want to delete. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph">If the path is not determined, the <emph>RmDir Statement</emph> searches for the directory that you want to delete in the current path. If it is not found there, an error message appears.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err76"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRmDir</item></paragraph><paragraph role="bascode">    <item type="identifier">MkDir</item> <item type="string">"C:\Test2"</item></paragraph><paragraph role="bascode">    <item type="identifier">ChDir</item> <item type="string">"C:\test2"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Curdir</item></paragraph><paragraph role="bascode">    <item type="identifier">ChDir</item> <item type="string">"\"</item></paragraph><paragraph role="bascode">    <item type="identifier">RmDir</item> <item type="string">"C:\test2"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�H�((text/sbasic/shared/03131400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>TwipsPerPixelY Function [Runtime]</title><filename>/text/sbasic/shared/03131400.xhp</filename></topic></meta><body><section id="twipsperpixely"><bookmark branch="index" id="bm_id3150040"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03131400.xhp">TwipsPerPixelY Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the number of twips that represent the height of a pixel.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">n</item> <item type="operator">=</item> <item type="identifier">TwipsPerPixelY</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExamplePixelTwips</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">TwipsPerPixelX</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" Twips * "</item> <item type="operator">&amp;</item> <item type="identifier">TwipsPerPixelY</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" Twips"</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Pixel size"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X�2vtext/sbasic/shared/01040000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Event-Driven Macros</title><filename>/text/sbasic/shared/01040000.xhp</filename></topic></meta><body><section id="weitere"><bookmark branch="index" id="bm_id3154581"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01040000.xhp">Event-Driven Macros</link></paragraph><paragraph role="paragraph">This section describes how to assign Basic programs to program events.</paragraph></section><paragraph role="paragraph">You can automatically execute a macro when a specified software event occurs by assigning the desired macro to the event. The following table provides an overview of program events and at what point an assigned macro is executed.</paragraph><table><tablerow><tablecell><paragraph role="tablehead">Event</paragraph></tablecell><tablecell><paragraph role="tablehead">An assigned macro is executed...</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Program Start</paragraph></tablecell><tablecell><paragraph role="tablecontent">... after a $[officename] application is started.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Program End</paragraph></tablecell><tablecell><paragraph role="tablecontent">...before a $[officename] application is terminated.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Create Document</paragraph></tablecell><tablecell><paragraph role="tablecontent">...after a new document is created with <emph>File - New</emph> or with the <emph>New</emph> icon.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Open Document</paragraph></tablecell><tablecell><paragraph role="tablecontent">...after a document is opened with <emph>File - Open</emph> or with the <emph>Open</emph> icon.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Save Document As</paragraph></tablecell><tablecell><paragraph role="tablecontent">...before a document is saved under a specified name (with <emph>File - Save As</emph>, or with <emph>File - Save</emph> or the <emph>Save</emph> icon, if a document name has not yet been specified).</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Document has been saved as</paragraph></tablecell><tablecell><paragraph role="tablecontent">... after a document was saved under a specified name (with <emph>File - Save As</emph>, or with <emph>File - Save</emph> or with the <emph>Save</emph> icon, if a document name has not yet been specified).</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Save Document</paragraph></tablecell><tablecell><paragraph role="tablecontent">...before a document is saved with <emph>File - Save</emph> or the <emph>Save</emph> icon, provided that a document name has already been specified.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Document has been saved</paragraph></tablecell><tablecell><paragraph role="tablecontent">...after a document is saved with <emph>File - Save</emph> or the <emph>Save</emph> icon, provided that a document name has already been specified.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Document is closing</paragraph></tablecell><tablecell><paragraph role="tablecontent">...before a document is closed.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Document closed</paragraph></tablecell><tablecell><paragraph role="tablecontent">...after a document was closed. Note that the "Save Document" event may also occur when the document is saved before closing.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Activate Document</paragraph></tablecell><tablecell><paragraph role="tablecontent">...after a document is brought to the foreground.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Deactivate Document</paragraph></tablecell><tablecell><paragraph role="tablecontent">...after another document is brought to the foreground.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Print Document</paragraph></tablecell><tablecell><paragraph role="tablecontent">...after the <emph>Print</emph> dialog is closed, but before the actual print process begins.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">JavaScript run-time error</paragraph></tablecell><tablecell><paragraph role="tablecontent">...when a JavaScript run-time error occurs.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Print Mail Merge</paragraph></tablecell><tablecell><paragraph role="tablecontent">...after the <emph>Print</emph> dialog is closed, but before the actual print process begins. This event occurs for each copy printed.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Change of the page count</paragraph></tablecell><tablecell><paragraph role="tablecontent">...when the page count changes.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Message received</paragraph></tablecell><tablecell><paragraph role="tablecontent">...if a message was received.</paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Assigning a Macro to an Event</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Customize</emph> and click the <emph>Events</emph> tab.</paragraph></listitem><listitem><paragraph role="listitem">Select whether you want the assignment to be globally valid or just valid in the current document in the <emph>Save In</emph> listbox.</paragraph></listitem><listitem><paragraph role="listitem">Select the event from the <emph>Event</emph> list.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>Macro</emph> and select the macro to be assigned to the selected event.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>OK</emph> to assign the macro.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>OK</emph> to close the dialog.</paragraph></listitem></list><paragraph role="heading" level="2">Removing the Assignment of a Macro to an Event</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Customize</emph> and click the <emph>Events</emph> tab.</paragraph></listitem><listitem><paragraph role="listitem">Select whether you want to remove a global assignment or an assignment that is just valid in the current document by selecting the option in the <emph>Save In</emph> listbox.</paragraph></listitem><listitem><paragraph role="listitem">Select the event that contains the assignment to be removed from the <emph>Event</emph> list.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>Remove</emph>.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>OK</emph> to close the dialog.</paragraph></listitem></list></body></helpdocument>
PK
Nw�X1O�xxtext/sbasic/shared/03030301.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Date Statement [Runtime]</title><filename>/text/sbasic/shared/03030301.xhp</filename></topic></meta><body><section id="date"><bookmark branch="index" id="bm_id3156027"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030301.xhp">Date Statement [Runtime]</link></paragraph><paragraph role="paragraph">Returns the current system date as a string, or resets the date. The date format depends on your local system settings.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Date</item> <item type="operator">;</item> <item type="keyword">Date</item> <item type="operator">=</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Only required in order to reset the system date. In this case, the string expression must correspond to the date format defined in your local settings.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDate</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"The date is "</item> <item type="operator">&amp;</item> <item type="keyword">Date</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XXǶn��text/sbasic/shared/03090406.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Function Statement [Runtime]</title><filename>/text/sbasic/shared/03090406.xhp</filename></topic></meta><body><section id="function"><bookmark branch="index" id="bm_id3153346"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090406.xhp">Function Statement [Runtime]</link></paragraph><paragraph role="paragraph">Defines a subroutine that can be used as an expression to determine a return type.</paragraph></section><paragraph role="heading" level="2">Syntax</paragraph><paragraph role="paragraph">see Parameter</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">Syntax</paragraph><paragraph role="paragraph">Function Name[(VarName1 [As Type][, VarName2 [As Type][,...]]]) [As Type]</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">[Exit Function]</paragraph><paragraph role="paragraph">statement block</paragraph><paragraph role="paragraph">End Function</paragraph><paragraph role="paragraph">Parameter</paragraph><paragraph role="paragraph"><emph>Name:</emph> Name of the subroutine to contain the value returned by the function.</paragraph><paragraph role="paragraph"><emph>VarName:</emph> Parameter to be passed to the subroutine.</paragraph><paragraph role="paragraph"><emph>Type:</emph> Type-declaration keyword.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleExit</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sReturn</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sListArray</item><item type="operator">(</item><item type="number">10</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">siStep</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">siStep</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">10</item> <item type="comment">' Fill array with test data</item></paragraph><paragraph role="bascode">        <item type="identifier">sListArray</item><item type="operator">(</item><item type="identifier">siStep</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">chr$</item><item type="operator">(</item><item type="identifier">siStep</item> <item type="operator">+</item> <item type="number">65</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="identifier">MsgBox</item> <item type="identifier">sListArray</item><item type="operator">(</item><item type="identifier">siStep</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">siStep</item></paragraph><paragraph role="bascode">    <item type="identifier">sReturn</item> <item type="operator">=</item> <item type="identifier">LinSearch</item><item type="operator">(</item><item type="identifier">sListArray</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item> <item type="string">"B"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sReturn</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">LinSearch</item><item type="operator">(</item> <item type="identifier">sList</item><item type="operator">(</item><item type="operator">)</item><item type="operator">,</item> <item type="identifier">sItem</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="comment">' Linsearch searches a TextArray:sList() for a TextEntry:</item></paragraph><paragraph role="bascode"><item type="comment">' Return value Is the index of the entry Or 0 (Null)</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item><item type="operator">=</item><item type="number">1</item> <item type="keyword">To</item> <item type="identifier">Ubound</item><item type="operator">(</item> <item type="identifier">sList</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sList</item><item type="operator">(</item> <item type="identifier">iCount</item> <item type="operator">)</item> <item type="operator">=</item> <item type="identifier">sItem</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="keyword">Exit</item> <item type="keyword">For</item> <item type="comment">' sItem found</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="identifier">Ubound</item><item type="operator">(</item> <item type="identifier">sList</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">)</item> <item type="keyword">Then</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">0</item></paragraph><paragraph role="bascode">    <item type="identifier">LinSearch</item> <item type="operator">=</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xk�otext/sbasic/shared/03080700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Expression Signs</title><filename>/text/sbasic/shared/03080700.xhp</filename></topic></meta><body><section id="vorzeichen"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080700.xhp">Expression Signs</link></paragraph><paragraph role="paragraph">This function returns the algebraic sign of a numeric expression.</paragraph></section><embed href="text/sbasic/shared/03080701.xhp#sgn"/></body></helpdocument>
PK
Nw�XA�s}��text/sbasic/shared/03080501.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Fix Function [Runtime]</title><filename>/text/sbasic/shared/03080501.xhp</filename></topic></meta><body><section id="fix"><bookmark branch="index" id="bm_id3159201"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080501.xhp">Fix Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the integer value of a numeric expression by removing the fractional part of the number.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Fix</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Numeric expression that you want to return the integer value for.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleFix</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Fix</item><item type="operator">(</item><item type="number">3.14159</item><item type="operator">)</item> <item type="comment">' returns 3.</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Fix</item><item type="operator">(</item><item type="number">0</item><item type="operator">)</item> <item type="comment">' returns 0.</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Fix</item><item type="operator">(</item><item type="unknown">-</item><item type="number">3.14159</item><item type="operator">)</item> <item type="comment">' returns -3.</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X3S�fjjtext/sbasic/shared/03070500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>"^" Operator [Runtime]</title><filename>/text/sbasic/shared/03070500.xhp</filename></topic></meta><body><section id="potenz"><bookmark branch="index" id="bm_id3145315"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03070500.xhp">"^" Operator [Runtime]</link></paragraph><paragraph role="paragraph">Raises a number to a power.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression</item> <item type="operator">^</item> <item type="identifier">Exponent</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numerical expression that contains the result of the number raised to a power.</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Numerical value that you want to raise to a power.</paragraph><paragraph role="paragraph"><emph>Exponent:</emph> The value of the power that you want to raise the expression to.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Example</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="operator">(</item> <item type="number">12.345</item> <item type="operator">^</item> <item type="number">23</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Exp</item> <item type="operator">(</item> <item type="number">23</item> <item type="operator">*</item> <item type="identifier">Log</item><item type="operator">(</item> <item type="number">12.345</item> <item type="operator">)</item> <item type="operator">)</item> <item type="comment">' Raises by forming a logarithm</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XIM/��
�
text/sbasic/shared/03120102.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Chr Function [Runtime]</title><filename>/text/sbasic/shared/03120102.xhp</filename></topic></meta><body><section id="chr"><bookmark branch="index" id="bm_id3149205"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120102.xhp">Chr Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the character that corresponds to the specified character code.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Chr</item><item type="operator">(</item><item type="identifier">Expression</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Numeric variables that represent a valid 8 bit ASCII value (0-255) or a 16 bit Unicode value.</paragraph><paragraph role="paragraph">Use the <emph>Chr$</emph> function to send special control sequences to a printer or to another output source. You can also use it to insert quotation marks in a string expression.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleChr</item></paragraph><paragraph role="bascode">    <item type="comment">' This example inserts quotation marks (ASCII value 34) in a string.</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"A "</item><item type="operator">+</item> <item type="identifier">Chr$</item><item type="operator">(</item><item type="number">34</item><item type="operator">)</item><item type="operator">+</item><item type="string">"short"</item> <item type="operator">+</item> <item type="identifier">Chr$</item><item type="operator">(</item><item type="number">34</item><item type="operator">)</item><item type="operator">+</item><item type="string">" trip."</item></paragraph><paragraph role="bascode">    <item type="comment">' The printout appears in the dialog as: A "short" trip.</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><section id="relatedtopics"><paragraph role="paragraph"><link href="text/sbasic/shared/03120101.xhp">ASC</link></paragraph></section></body></helpdocument>
PK
Nw�X,�g��text/sbasic/shared/03030116.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDateFromUnoDateTime Function [Runtime]</title><filename>/text/sbasic/shared/03030116.xhp</filename></topic></meta><body><section id="cdatefromunodatetime"><bookmark branch="index" id="bm_id3150620"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030116.xhp">CDateFromUnoDateTime Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a UNO com.sun.star.util.DateTime struct to a Date value.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDateFromUnoDateTime</item><item type="operator">(</item><item type="identifier">aDateTime</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>aDateTime:</emph> DateTime to convert</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCDateFromUnoDateTime</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item><item type="operator">(</item><item type="identifier">CDateFromUnoDateTime</item><item type="operator">(</item><item type="identifier">aDatabaseRow</item><item type="operator">.</item><item type="identifier">getTimestamp</item><item type="operator">(</item><item type="number">3</item><item type="operator">)</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X�g�TUUtext/sbasic/shared/03010103.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Print Statement [Runtime]</title><filename>/text/sbasic/shared/03010103.xhp</filename></topic></meta><body><section id="print"><bookmark branch="index" id="bm_id3147230"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010103.xhp">Print Statement [Runtime]</link></paragraph><paragraph role="paragraph">Outputs the specified strings or numeric expressions to a dialog or to a file.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Print</item> <item type="identifier">[#FileName,]</item> <item type="identifier">Expression1</item><item type="identifier">[{;|,} [Spc(Number As Integer);]</item> <item type="identifier">[Tab(pos As Integer);]</item> <item type="identifier">[Expression2[...]</item><item type="operator">]</item> </paragraph></bascode><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>FileName:</emph> Any numeric expression that contains the file number that was set by the Open statement for the respective file.</paragraph><paragraph role="paragraph"><emph>Expression</emph>: Any numeric or string expression to be printed. Multiple expressions can be separated by a semicolon. If separated by a comma, the expressions are indented to the next tab stop. The tab stops cannot be adjusted.</paragraph><paragraph role="paragraph"><emph>Number</emph>: Number of spaces to be inserted by the <emph>Spc</emph> function.</paragraph><paragraph role="paragraph"><emph>Pos</emph>: Spaces are inserted until the specified position.</paragraph><paragraph role="paragraph">If a semicolon or comma appears after the last expression to be printed, $[officename] Basic stores the text in an internal buffer and continues program execution without printing. When another Print statement without a semicolon or comma at the end is encountered, all text to be printed is printed at once.</paragraph><paragraph role="paragraph">Positive numeric expressions are printed with a leading space. Negative expressions are printed with a leading minus sign. If a certain range is exceeded for floating-point values, the respective numeric expression is printed in exponential notation.</paragraph><paragraph role="paragraph">If the expression to be printed exceeds a certain length, the display will automatically wrap to the next line.</paragraph><paragraph role="note">You can insert the Tab function, enclosed by semicolons, between arguments to indent the output to a specific position, or you can use the <emph>Spc</emph> function to insert a specified number of spaces.</paragraph><paragraph role="heading" level="2">Example:</paragraph><switch select="sys"><case select="WIN"><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExamplePrint</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"ABC"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"ABC"</item><item type="operator">,</item><item type="string">"123"</item></paragraph><paragraph role="bascode">    <item type="identifier">i</item> <item type="operator">=</item> <item type="identifier">FreeFile</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="string">"C:\Temp.txt"</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="identifier">i</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">i</item><item type="operator">,</item> <item type="string">"ABC"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></case><default><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExamplePrint</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"ABC"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"ABC"</item><item type="operator">,</item><item type="string">"123"</item></paragraph><paragraph role="bascode">    <item type="identifier">i</item> <item type="operator">=</item> <item type="identifier">FreeFile</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="string">"~/temp.txt"</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="identifier">i</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">i</item><item type="operator">,</item> <item type="string">"ABC"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></default></switch></body></helpdocument>
PK
Nw�X9
e�
�
text/sbasic/shared/03102000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefVar Statement [Runtime]</title><filename>/text/sbasic/shared/03102000.xhp</filename></topic></meta><body><section id="defvar"><bookmark branch="index" id="bm_id3143267"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102000.xhp">DefVar Statement [Runtime]</link></paragraph><paragraph role="paragraph">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set the default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword: </emph>Default variable type</paragraph><paragraph role="paragraph"><emph>DefVar:</emph> Variant</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definitions for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefVar</item></paragraph><paragraph role="bascode">    <item type="identifier">vDiv</item><item type="operator">=</item><item type="number">99</item> <item type="comment">' vDiv is an implicit variant</item></paragraph><paragraph role="bascode">    <item type="identifier">vDiv</item><item type="operator">=</item><item type="string">"Hello world"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X"S�text/sbasic/shared/03010200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Functions for Screen Input</title><filename>/text/sbasic/shared/03010200.xhp</filename></topic></meta><body><section id="eingabe"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010200.xhp">Functions for Screen Input</link></paragraph><paragraph role="paragraph">This section describes Runtime functions used to control screen input.</paragraph></section><embed href="text/sbasic/shared/03010201.xhp#inputbox"/></body></helpdocument>
PK
Nw�X�h�%%text/sbasic/shared/03100100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CBool Function [Runtime]</title><filename>/text/sbasic/shared/03100100.xhp</filename></topic></meta><body><section id="cbool"><bookmark branch="index" id="bm_id3150616"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100100.xhp">CBool Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a string comparison or numeric comparison to a Boolean expression, or converts a single numeric expression to a Boolean expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CBool</item> <item type="operator">(</item><item type="identifier">Expression1</item> <item type="operator">{</item><item type="operator">=</item> <item type="operator">|</item> <item type="operator">&lt;</item><item type="operator">&gt;</item> <item type="operator">|</item> <item type="operator">&lt;</item> <item type="operator">|</item> <item type="operator">&gt;</item> <item type="operator">|</item> <item type="operator">&lt;</item><item type="operator">=</item> <item type="operator">|</item> <item type="operator">&gt;</item><item type="operator">=</item><item type="operator">}</item> <item type="identifier">Expression2</item><item type="operator">)</item> <item type="keyword">or</item> <item type="identifier">CBool</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any string or numeric expressions that you want to compare. If the expressions match, the <emph>CBool</emph> function returns <emph>True</emph>, otherwise <emph>False</emph> is returned.</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numeric expression that you want to convert. If the expression equals 0, <emph>False</emph> is returned, otherwise <emph>True</emph> is returned.</paragraph><paragraph role="paragraph">The following example uses the <emph>CBool</emph> function to evaluate the value that is returned by the <emph>Instr</emph> function. The function checks if the word "and" is found in the sentence that was entered by the user.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCBool</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Please enter a short sentence:"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="comment">' Proof if the word »and« appears in the sentence.</item></paragraph><paragraph role="bascode">    <item type="comment">' Instead of the command line</item></paragraph><paragraph role="bascode">    <item type="comment">' If Instr(Input, "and")&lt;&gt;0 Then...</item></paragraph><paragraph role="bascode">    <item type="comment">' the CBool function is applied as follows:</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">CBool</item><item type="operator">(</item><item type="identifier">Instr</item><item type="operator">(</item><item type="identifier">sText</item><item type="operator">,</item> <item type="string">"and"</item><item type="operator">)</item><item type="operator">)</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">        <item type="identifier">MsgBox</item> <item type="string">"The word »and« appears in the sentence you entered!"</item></paragraph><paragraph role="bascode">    <item type="keyword">EndIf</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��
�
�
text/sbasic/shared/03130800.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Environ Function [Runtime]</title><filename>/text/sbasic/shared/03130800.xhp</filename></topic></meta><body><section id="environ"><bookmark branch="index" id="bm_id3155364"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03130800.xhp">Environ Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the value of an environment variable as a string. Environment variables are dependent on the type of operating system that you have.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Environ</item> <item type="operator">(</item><item type="identifier">Environment</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">Environment: Environment variable that you want to return the value for.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleEnviron</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sTemp</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sTemp</item><item type="operator">=</item><item type="identifier">Environ</item> <item type="operator">(</item><item type="string">"TEMP"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">sTemp</item> <item type="operator">=</item> <item type="string">""</item> <item type="keyword">Then</item> <item type="identifier">sTemp</item><item type="operator">=</item><item type="identifier">Environ</item><item type="operator">(</item><item type="string">"TMP"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"'"</item> <item type="operator">&amp;</item> <item type="identifier">sTemp</item> <item type="operator">&amp;</item> <item type="string">"'"</item> <item type="operator">,</item><item type="number">64</item><item type="operator">,</item><item type="string">"Directory of temporary files:"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X����ddtext/sbasic/shared/01030000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Integrated Development Environment (IDE)</title><filename>/text/sbasic/shared/01030000.xhp</filename></topic></meta><body><section id="ide"><bookmark branch="index" id="bm_id3145090"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01030000.xhp">Integrated Development Environment (IDE)</link></paragraph><paragraph role="paragraph">This section describes the Integrated Development Environment for $[officename] Basic.</paragraph></section><embed href="text/sbasic/shared/01030100.xhp#ueberblick"/><embed href="text/sbasic/shared/01030400.xhp#anlegenverwalten"/><embed href="text/sbasic/shared/01030200.xhp#basiceditor"/><embed href="text/sbasic/shared/01030300.xhp#basicfehler"/><embed href="text/shared/optionen/BasicIDE.xhp#basicide"/></body></helpdocument>
PK
Nw�X\�7s��text/sbasic/shared/03030112.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDateFromUnoDate Function [Runtime]</title><filename>/text/sbasic/shared/03030112.xhp</filename></topic></meta><body><section id="cdatefromunodate"><bookmark branch="index" id="bm_id3150620"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030112.xhp">CDateFromUnoDate Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a UNO com.sun.star.util.Date struct to a Date value.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDateFromUnoDate</item><item type="operator">(</item><item type="identifier">aDate</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>aDate:</emph> Date to convert</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCDateFromUnoDate</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item><item type="operator">(</item><item type="identifier">CDateFromUnoDate</item><item type="operator">(</item><item type="identifier">aDatabaseRow</item><item type="operator">.</item><item type="identifier">getDate</item><item type="operator">(</item><item type="number">3</item><item type="operator">)</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item><item type="operator">(</item><item type="identifier">CDateFromUnoDate</item><item type="operator">(</item><item type="identifier">aDateControl</item><item type="operator">.</item><item type="keyword">Date</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xf���text/sbasic/shared/03120202.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>String Function [Runtime]</title><filename>/text/sbasic/shared/03120202.xhp</filename></topic></meta><body><section id="string"><bookmark branch="index" id="bm_id3147291"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120202.xhp">String Function [Runtime]</link></paragraph><paragraph role="paragraph">Creates a string according to the specified character, or the first character of a string expression that is passed to the function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">String</item> <item type="operator">(</item><item type="identifier">n</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">,</item> <item type="operator">{</item><item type="identifier">expression</item> <item type="keyword">As</item> <item type="keyword">Integer</item> <item type="operator">|</item> <item type="identifier">character</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">}</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>n:</emph> Numeric expression that indicates the number of characters to return in the string. The maximum allowed value of n is 65535.</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Numeric expression that defines the ASCII code for the character.</paragraph><paragraph role="paragraph"><emph>Character:</emph> Any single character used to build the return string, or any string of which only the first character will be used.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleString</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">10</item><item type="operator">,</item><item type="string">"A"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">10</item><item type="operator">,</item><item type="number">65</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sText</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�Xv����text/sbasic/shared/03020102.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FreeFile Function[Runtime]</title><filename>/text/sbasic/shared/03020102.xhp</filename></topic></meta><body><section id="freefile"><bookmark branch="index" id="bm_id3150400"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020102.xhp">FreeFile Function[Runtime]</link></paragraph><paragraph role="paragraph">Returns the next available file number for opening a file. Use this function to open a file using a file number that is not already in use by a currently open file.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FreeFile</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">This function can only be used immediately in front of an Open statement. FreeFile returns the next available file number, but does not reserve it.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err67"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWorkWithAFile</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sLine</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sMsg</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">sMsg</item> <item type="operator">=</item> <item type="string">""</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"First line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"Another line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">While</item> <item type="keyword">Not</item> <item type="identifier">eof</item><item type="operator">(</item><item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="identifier">sLine</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sLine</item> <item type="operator">&lt;</item><item type="operator">&gt;</item><item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="identifier">sMsg</item> <item type="operator">=</item> <item type="identifier">sMsg</item> <item type="operator">&amp;</item> <item type="identifier">sLine</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Wend</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sMsg</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X|YᏒ�text/sbasic/shared/03080701.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Sgn Function [Runtime]</title><filename>/text/sbasic/shared/03080701.xhp</filename></topic></meta><body><section id="sgn"><bookmark branch="index" id="bm_id3148474"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080701.xhp">Sgn Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns an integer number between -1 and 1 that indicates if the number that is passed to the function is positive, negative, or zero.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Sgn</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Numeric expression that determines the value that is returned by the function.</paragraph><table><tablerow><tablecell><paragraph role="paragraph">NumExpression</paragraph></tablecell><tablecell><paragraph role="paragraph">Return value</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">negative</paragraph></tablecell><tablecell><paragraph role="paragraph">Sgn returns -1.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">0</paragraph></tablecell><tablecell><paragraph role="paragraph">Sgn returns 0.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">positive</paragraph></tablecell><tablecell><paragraph role="paragraph">Sgn returns 1.</paragraph></tablecell></tablerow></table><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSgn</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sgn</item><item type="operator">(</item><item type="unknown">-</item><item type="number">10</item><item type="operator">)</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sgn</item><item type="operator">(</item><item type="number">0</item><item type="operator">)</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sgn</item><item type="operator">(</item><item type="number">10</item><item type="operator">)</item> <item type="comment">' returns 1</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X"�D�K�Ktext/sbasic/shared/01020100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Using Variables</title><filename>/text/sbasic/shared/01020100.xhp</filename></topic></meta><body><section id="variable"><bookmark branch="index" id="bm_id3149346"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01020100.xhp">Using Variables</link></paragraph><paragraph role="paragraph">The following describes the basic use of variables in $[officename] Basic.</paragraph></section><paragraph role="heading" level="2">Naming Conventions for Variable Identifiers</paragraph><paragraph role="paragraph">A variable name can consist of a maximum of 255 characters. The first character of a variable name <emph>must</emph> be a letter A-Z or a-z. Numbers can also be used in a variable name, but punctuation symbols and special characters are not permitted, with exception of the underscore character ("_"). In $[officename] Basic variable identifiers are not case-sensitive. Variable names may contain spaces but must be enclosed in square brackets if they do.</paragraph><paragraph role="paragraph">Examples for variable identifiers:</paragraph><table><tablerow><tablecell><bascode><paragraph role="bascode"><item type="identifier">MyNumber</item><item type="operator">=</item><item type="number">5</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Correct</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="identifier">MyNumber5</item><item type="operator">=</item><item type="number">15</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Correct</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="identifier">MyNumber_5</item><item type="operator">=</item><item type="number">20</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Correct</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="identifier">My</item> <item type="identifier">Number</item><item type="operator">=</item><item type="number">20</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Not valid, variable with space must be enclosed in square brackets</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="identifier">[My Number]</item><item type="operator">=</item><item type="number">12</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Correct</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="identifier">D</item><item type="unknown">é</item><item type="identifier">j</item><item type="unknown">à</item><item type="identifier">Vu</item><item type="operator">=</item><item type="number">25</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Not valid, special characters are not allowed</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="number">5</item><item type="identifier">MyNumber</item><item type="operator">=</item><item type="number">12</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Not valid, variable may not begin with a number</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="identifier">Number</item><item type="operator">,</item><item type="identifier">Mine</item><item type="operator">=</item><item type="number">12</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Not valid, punctuation marks are not allowed</paragraph></tablecell></tablerow></table><paragraph role="heading" level="2">Declaring Variables</paragraph><paragraph role="paragraph">In $[officename] Basic you don't need to declare variables explicitly. A variable declaration can be performed with the <emph>Dim</emph> statement. You can declare more than one variable at a time by separating the names with a comma. To define the variable type, use either a type-declaration sign after the name, or the appropriate key word. </paragraph><paragraph role="paragraph">Examples for variable declarations:</paragraph><table><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">a$</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Declares the variable "a" as a String</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">a</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Declares the variable "a" as a String</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">a$</item><item type="operator">,</item> <item type="identifier">b</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Declares one variable as a String and one as an Integer</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">c</item> <item type="keyword">As</item> <item type="keyword">Boolean</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Declares c as a Boolean variable that can be TRUE or FALSE</paragraph></tablecell></tablerow></table><paragraph role="paragraph">It is very important when declaring variables that you use the type-declaration character each time, even if it was used in the declaration instead of a keyword. Thus the following statements are invalid:</paragraph><table><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">a$</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Declares "a" as a String</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="identifier">a</item><item type="operator">=</item><item type="string">"TestString"</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">Type-declaration missing: "a$="</paragraph></tablecell></tablerow></table><paragraph role="warning">Once you have declared a variable as a certain type, you cannot declare the variable under the same name again as a different type!</paragraph><paragraph role="heading" level="3">Forcing Variable Declarations</paragraph><paragraph role="paragraph">To force declaration of variables, use the following command:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Option</item> <item type="keyword">Explicit</item></paragraph></bascode><paragraph role="paragraph">The <emph>Option Explicit</emph> statement has to be the first line in the module, before the first SUB. Generally, only arrays need to be declared explicitly. All other variables are declared according to the type-declaration character, or - if omitted - as the default type <emph>Single</emph>.</paragraph><paragraph role="heading" level="2">Variable Types</paragraph><paragraph role="paragraph">$[officename] Basic supports four variable classes:</paragraph><list type="unordered"><listitem><paragraph role="listitem"><emph>Numeric</emph> variables can contain number values. Some variables are used to store large or small numbers, and others are used for floating-point or fractional numbers. </paragraph></listitem><listitem><paragraph role="listitem"><emph>String</emph> variables contain character strings.</paragraph></listitem><listitem><paragraph role="listitem"><emph>Boolean</emph> variables contain either the TRUE or the FALSE value.</paragraph></listitem><listitem><paragraph role="listitem"><emph>Object</emph> variables can store objects of various types, like tables and documents within a document.</paragraph></listitem></list><paragraph role="heading" level="3">Integer Variables</paragraph><paragraph role="paragraph">Integer variables range from -32768 to 32767. If you assign a floating-point value to an integer variable, the decimal places are rounded to the next integer. Integer variables are rapidly calculated in procedures and are suitable for counter variables in loops. An integer variable only requires two bytes of memory. "%" is the type-declaration character.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item><item type="operator">%</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph></bascode><paragraph role="heading" level="3">Long Integer Variables</paragraph><paragraph role="paragraph">Long integer variables range from -2147483648 to 2147483647. If you assign a floating-point value to a long integer variable, the decimal places are rounded to the next integer. Long integer variables are rapidly calculated in procedures and are suitable for counter variables in loops for large values. A long integer variable requires four bytes of memory. "&amp;" is the type-declaration character.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item><item type="operator">&amp;</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph></bascode><paragraph role="heading" level="3">Decimal Variables</paragraph><paragraph role="paragraph">Decimal variables can take positive or negative numbers or zero. Accuracy is up to 29 digits.</paragraph><paragraph role="paragraph">You can use plus (+) or minus (-) signs as prefixes for decimal numbers (with or without spaces).</paragraph><paragraph role="paragraph">If a decimal number is assigned to an integer variable, %PRODUCTNAME Basic rounds the figure up or down.</paragraph><paragraph role="heading" level="3">Single Variables</paragraph><paragraph role="paragraph">Single variables can take positive or negative values ranging from 3.402823 x 10E38 to 1.401298 x 10E-45. Single variables are floating-point variables, in which the decimal precision decreases as the non-decimal part of the number increases. Single variables are suitable for mathematical calculations of average precision. Calculations require more time than for Integer variables, but are faster than calculations with Double variables. A Single variable requires 4 bytes of memory. The type-declaration character is "!".</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item><item type="operator">!</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph></bascode><paragraph role="heading" level="3">Double Variables</paragraph><paragraph role="paragraph">Double variables can take positive or negative values ranging from 1.79769313486232 x 10E308 to 4.94065645841247 x 10E-324. Double variables are floating-point variables, in which the decimal precision decreases as the non-decimal part of the number increases. Double variables are suitable for precise calculations. Calculations require more time than for Single variables. A Double variable requires 8 bytes of memory. The type-declaration character is "#".</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item><item type="unknown">#</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph></bascode><paragraph role="heading" level="3">Currency Variables</paragraph><paragraph role="paragraph">Currency variables are internally stored as 64-bit numbers (8 Bytes) and displayed as a fixed-decimal number with 15 non-decimal and 4 decimal places. The values range from -922337203685477.5808 to +922337203685477.5807. Currency variables are used to calculate currency values with a high precision. The type-declaration character is "@".</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item><item type="unknown">@</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item> <item type="keyword">As</item> <item type="keyword">Currency</item></paragraph></bascode><paragraph role="heading" level="3">String Variables</paragraph><paragraph role="paragraph">String variables can hold character strings with up to 65,535 characters. Each character is stored as the corresponding Unicode value. String variables are suitable for word processing within programs and for temporary storage of any non-printable character up to a maximum length of 64 Kbytes. The memory required for storing string variables depends on the number of characters in the variable. The type-declaration character is "$".</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable$</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="3">Boolean Variables</paragraph><paragraph role="paragraph">Boolean variables store only one of two values: TRUE or FALSE. A number 0 evaluates to FALSE, every other value evaluates to TRUE.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item> <item type="keyword">As</item> <item type="keyword">Boolean</item></paragraph></bascode><paragraph role="heading" level="3">Date Variables</paragraph><paragraph role="paragraph">Date variables can only contain dates and time values stored in an internal format. Values assigned to Date variables with <link href="text/sbasic/shared/03030101.xhp"><emph>Dateserial</emph></link>, <link href="text/sbasic/shared/03030102.xhp"><emph>Datevalue</emph></link>, <link href="text/sbasic/shared/03030205.xhp"><emph>Timeserial</emph></link> or <link href="text/sbasic/shared/03030206.xhp"><emph>Timevalue</emph></link> are automatically converted to the internal format. Date-variables are converted to normal numbers by using the <link href="text/sbasic/shared/03030103.xhp"><emph>Day</emph></link>, <link href="text/sbasic/shared/03030104.xhp"><emph>Month</emph></link>, <link href="text/sbasic/shared/03030106.xhp"><emph>Year</emph></link> or the <link href="text/sbasic/shared/03030201.xhp"><emph>Hour</emph></link>, <link href="text/sbasic/shared/03030202.xhp"><emph>Minute</emph></link>, <link href="text/sbasic/shared/03030204.xhp"><emph>Second</emph></link> function. The internal format enables a comparison of date/time values by calculating the difference between two numbers. These variables can only be declared with the key word <emph>Date</emph>.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Variable</item> <item type="keyword">As</item> <item type="keyword">Date</item></paragraph></bascode><paragraph role="heading" level="2">Initial Variable Values</paragraph><paragraph role="paragraph">As soon as the variable has been declared, it is automatically set to the "Null" value. Note the following conventions:</paragraph><paragraph role="paragraph"><emph>Numeric</emph> variables are automatically assigned the value "0" as soon as they are declared.</paragraph><paragraph role="paragraph"><emph>Date variables</emph> are assigned the value 0 internally; equivalent to converting the value to "0" with the <link href="text/sbasic/shared/03030103.xhp"><emph>Day</emph></link>, <link href="text/sbasic/shared/03030104.xhp"><emph>Month</emph></link>, <link href="text/sbasic/shared/03030106.xhp"><emph>Year</emph></link> or the <link href="text/sbasic/shared/03030201.xhp"><emph>Hour</emph></link>, <link href="text/sbasic/shared/03030202.xhp"><emph>Minute</emph></link>, <link href="text/sbasic/shared/03030204.xhp"><emph>Second</emph></link> function.</paragraph><paragraph role="paragraph"><emph>String variables</emph> are assigned an empty-string ("") when they are declared.</paragraph><paragraph role="heading" level="2">Arrays</paragraph><paragraph role="paragraph">$[officename] Basic knows one- or multi-dimensional arrays, defined by a specified variable type. Arrays are suitable for editing lists and tables in programs. Individual elements of an array can be addressed through a numeric index.</paragraph><paragraph role="paragraph">Arrays <emph>must</emph> be declared with the <emph>Dim</emph> statement. There are several ways to define the index range of an array:</paragraph><table><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Text$</item><item type="operator">(</item><item type="number">20</item><item type="operator">)</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">21 elements numbered from 0 to 20</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Text$</item><item type="operator">(</item><item type="number">5</item><item type="operator">,</item><item type="number">4</item><item type="operator">)</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">30 elements (a matrix of 6 x 5 elements)</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Text$</item><item type="operator">(</item><item type="number">5</item> <item type="keyword">To</item> <item type="number">25</item><item type="operator">)</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">21 elements numbered from 5 to 25</paragraph></tablecell></tablerow><tablerow><tablecell><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">Text$</item><item type="operator">(</item><item type="unknown">-</item><item type="number">15</item> <item type="keyword">To</item> <item type="number">5</item><item type="operator">)</item></paragraph></bascode></tablecell><tablecell><paragraph role="paragraph">21 elements (including 0), numbered from -15 to 5</paragraph></tablecell></tablerow></table><paragraph role="paragraph">The index range can include positive as well as negative numbers. </paragraph><paragraph role="heading" level="2">Constants</paragraph><paragraph role="paragraph">Constants have a fixed value. They are only defined once in the program and cannot be redefined later:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Const</item> <item type="identifier">ConstName</item><item type="operator">=</item><item type="identifier">Expression</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��[���text/sbasic/shared/03030113.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDateToUnoTime Function [Runtime]</title><filename>/text/sbasic/shared/03030113.xhp</filename></topic></meta><body><section id="cdatetounotime"><bookmark branch="index" id="bm_id3150620"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030113.xhp">CDateToUnoTime Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the time part of the date as a UNO com.sun.star.util.Time struct.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDateToUnoTime</item><item type="operator">(</item><item type="identifier">aDate</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">com.sun.star.util.Time</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>aDate:</emph> Date value to convert</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCDateToUnoTime</item></paragraph><paragraph role="bascode">    <item type="identifier">aDatabaseRow</item><item type="operator">.</item><item type="identifier">updateTime</item><item type="operator">(</item><item type="number">3</item><item type="operator">,</item> <item type="identifier">CDateToUnoTime</item><item type="operator">(</item><item type="identifier">Now</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">aTimeControl</item><item type="operator">.</item><item type="identifier">Time</item> <item type="operator">=</item> <item type="identifier">CDateToUnoTime</item><item type="operator">(</item><item type="identifier">Now</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��P���text/sbasic/shared/03060000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Logical Operators</title><filename>/text/sbasic/shared/03060000.xhp</filename></topic></meta><body><section id="logi"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03060000.xhp">Logical Operators</link></paragraph><paragraph role="paragraph">The following logical operators are supported by $[officename] Basic.</paragraph></section><paragraph role="paragraph">Logical operators combine (bitwise) the contents of two expressions or variables, for example, to test if specific bits are set or not.</paragraph><embed href="text/sbasic/shared/03060100.xhp#and"/><embed href="text/sbasic/shared/03060200.xhp#eqv"/><embed href="text/sbasic/shared/03060300.xhp#imp"/><embed href="text/sbasic/shared/03060400.xhp#not"/><embed href="text/sbasic/shared/03060500.xhp#or"/><embed href="text/sbasic/shared/03060600.xhp#xor"/></body></helpdocument>
PK
Nw�X�i�mtext/sbasic/shared/03100070.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CVar Function [Runtime]</title><filename>/text/sbasic/shared/03100070.xhp</filename></topic></meta><body><section id="cvar"><bookmark branch="index" id="bm_id2338633"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100070.xhp">CVar Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a string expression or numeric expression to a variant expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CVar</item><item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Variant.</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph">Expression: Any string or numeric expression that you want to convert.</paragraph></body></helpdocument>
PK
Nw�Xw#C�-
-
text/sbasic/shared/03102300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsDate Function [Runtime]</title><filename>/text/sbasic/shared/03102300.xhp</filename></topic></meta><body><section id="isdate"><bookmark branch="index" id="bm_id3145090"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102300.xhp">IsDate Function [Runtime]</link></paragraph><paragraph role="paragraph">Tests if a numeric or string expression can be converted to a <emph>Date</emph> variable.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsDate</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any numeric or string expression that you want to test. If the expression can be converted to a date, the function returns <emph>True</emph>, otherwise the function returns <emph>False</emph>.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleIsDate</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sDateVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sDateVar</item> <item type="operator">=</item> <item type="string">"12.12.1997"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">IsDate</item><item type="operator">(</item><item type="identifier">sDateVar</item><item type="operator">)</item> <item type="comment">' Returns True</item></paragraph><paragraph role="bascode">    <item type="identifier">sDateVar</item> <item type="operator">=</item> <item type="string">"12121997"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">IsDate</item><item type="operator">(</item><item type="identifier">sDateVar</item><item type="operator">)</item> <item type="comment">' Returns False</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xh2���
�
text/sbasic/shared/03030104.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Month Function [Runtime]</title><filename>/text/sbasic/shared/03030104.xhp</filename></topic></meta><body><section id="month"><bookmark branch="index" id="bm_id3153127"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030104.xhp">Month Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the month of a year from a serial date that is generated by the DateSerial or the DateValue function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Month</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Numeric expression that contains the serial date number that is used to determine the month of the year.</paragraph><paragraph role="paragraph">This function is the opposite of the <emph>DateSerial </emph>function. It returns the month in the year that corresponds to the serial date that is generated by <emph>DateSerial</emph> or <emph>DateValue</emph>. For example, the expression</paragraph><bascode><paragraph role="bascode"><item type="keyword">Print</item> <item type="identifier">Month</item><item type="operator">(</item><item type="identifier">DateSerial</item><item type="operator">(</item><item type="number">1994</item><item type="operator">,</item> <item type="number">12</item><item type="operator">,</item> <item type="number">20</item><item type="operator">)</item><item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">returns the value 12.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleMonth</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">Month</item><item type="operator">(</item><item type="identifier">Now</item><item type="operator">)</item> <item type="operator">,</item><item type="number">64</item><item type="operator">,</item><item type="string">"The current month"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xy��6�	�	text/sbasic/shared/03030102.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DateValue Function [Runtime]</title><filename>/text/sbasic/shared/03030102.xhp</filename></topic></meta><body><section id="datevalue"><bookmark branch="index" id="bm_id3156344"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030102.xhp">DateValue Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a date value from a date string. The date string is a complete date in a single numeric value. You can also use this serial number to determine the difference between two dates.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">DateValue</item> <item type="identifier">[(date)]</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Date:</emph> String expression that contains the date that you want to calculate. The date can be specified in almost any format.</paragraph><paragraph role="paragraph">You can use this function to convert a date that occurs between December 1, 1582 and December 31, 9999 into a single integer value. You can then use this value to calculate the difference between two dates. If the date argument lies outside the acceptable range, $[officename] Basic returns an error message.</paragraph><paragraph role="paragraph">In contrast to the DateSerial function that passes years, months, and days as separate numeric values, the DateValue function passes the date using the format "month.[,]day.[,]year".</paragraph><embed href="text/sbasic/shared/00000003.xhp#languageformat"/><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDateValue</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">DateValue</item><item type="operator">(</item><item type="string">"12/02/2011"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��n@text/sbasic/shared/03102800.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsObject Function [Runtime]</title><filename>/text/sbasic/shared/03102800.xhp</filename></topic></meta><body><section id="isobject"><bookmark branch="index" id="bm_id3149346"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102800.xhp">IsObject Function [Runtime]</link></paragraph><paragraph role="paragraph">Tests if an object variable is an OLE object. The function returns True if the variable is an OLE object, otherwise it returns False.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsObject</item> <item type="operator">(</item><item type="identifier">ObjectVar</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>ObjectVar:</emph> Any variable that you want to test. If the Object variable contains an OLE object, the function returns True.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/></body></helpdocument>
PK
Mw�Xtext/sbasic/shared/01/PK
Mw�X����"text/sbasic/shared/01/06130500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Append libraries</title><filename>/text/sbasic/shared/01/06130500.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id3150502"/><paragraph role="heading" level="1">Append libraries</paragraph><paragraph role="paragraph">Locate that <item type="productname">%PRODUCTNAME</item> Basic library that you want to add to the current list, and then click Open.</paragraph><bookmark branch="hid/modules/BasicIDE/ui/importlibdialog/ImportLibDialog" id="bm_id3109850"/><paragraph role="heading" level="2">File name:</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/importlibdialog/ImportLibDialog">Enter a name or the path to the library that you want to append.</ahelp> You can also select a library from the list.</paragraph><paragraph role="heading" level="2">Options</paragraph><paragraph role="heading" level="3">Insert as reference (read-only)</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/importlibdialog/ref">Adds the selected library as a read-only file. The library is reloaded each time you start <item type="productname">%PRODUCTNAME</item>.</ahelp></paragraph><paragraph role="heading" level="3">Replace existing libraries</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/importlibdialog/replace">Replaces a library that has the same name with the current library.</ahelp></paragraph></body></helpdocument>
PK
Mw�X *���"text/sbasic/shared/01/06130100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Change Password</title><filename>/text/sbasic/shared/01/06130100.xhp</filename></topic></meta><body><paragraph role="heading" level="1">Change Password</paragraph><paragraph role="paragraph"><ahelp hid="svx/ui/passwd/PasswordDialog">Protects the selected library with a password.</ahelp> You can enter a new password, or change the current password.</paragraph><paragraph role="heading" level="2">Old password</paragraph><paragraph role="heading" level="3">Password</paragraph><paragraph role="paragraph"><ahelp hid="svx/ui/passwd/oldpassEntry">Enter the current password for the selected library.</ahelp></paragraph><paragraph role="heading" level="2">New password</paragraph><paragraph role="heading" level="3">Password</paragraph><paragraph role="paragraph"><ahelp hid="svx/ui/passwd/newpassEntry">Enter a new password for the selected library.</ahelp></paragraph><paragraph role="heading" level="3">Confirm</paragraph><paragraph role="paragraph"><ahelp hid="svx/ui/passwd/confirmpassEntry">Repeat the new password for the selected library.</ahelp></paragraph></body></helpdocument>
PK
Mw�Xi�1;;"text/sbasic/shared/01/06130000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Macro</title><filename>/text/sbasic/shared/01/06130000.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id3145786"/><paragraph role="heading" level="1">Macro</paragraph><paragraph role="paragraph"><variable id="makro"><ahelp hid=".uno:ChooseMacro">Opens the <emph>Macro </emph>dialog, where you can create, edit, organize, and run $[officename] Basic macros.</ahelp></variable></paragraph><paragraph role="heading" level="2">Macro name</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/macronameedit">Displays the name of the selected macro. To create or to change the name of a macro, enter a name here.</ahelp></paragraph><paragraph role="heading" level="2">Macro from / Save macro in</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/libraries">Lists the libraries and the modules where you can open or save your macros. To save a macro with a particular document, open the document, and then open this dialog.</ahelp></paragraph><paragraph role="heading" level="2">Run / Save</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/run">Runs or saves the current macro.</ahelp></paragraph><paragraph role="heading" level="2">Assign</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/assign">Opens the Customize dialog, where you can assign the selected macro to a menu command, a toolbar, or an event.</ahelp></paragraph><paragraph role="heading" level="2">Edit</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/edit">Starts the $[officename] Basic editor and opens the selected macro for editing.</ahelp></paragraph><paragraph role="heading" level="2">New/Delete</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/delete">Creates a new macro, or deletes the selected macro.</ahelp></paragraph><paragraph role="paragraph">To create a new macro, select the "Standard" module in the <emph>Macro from</emph> list, and then click <emph>New</emph>. </paragraph><paragraph role="paragraph">To delete a macro, select it, and then click <emph>Delete</emph>.</paragraph><paragraph role="heading" level="2">Organizer</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/basicmacrodialog/organize">Opens the <emph>Macro Organizer</emph> dialog, where you can add, edit, or delete existing macro modules, dialogs, and libraries.</ahelp></paragraph><paragraph role="heading" level="3">Module/Dialog</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/modulepage/library">Lists the existing macros and dialogs.</ahelp></paragraph><paragraph role="paragraph">You can drag-and-drop a module or a dialog between libraries.</paragraph><paragraph role="paragraph">To copy a dialog or a module, hold down the <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline> key while you drag-and-drop.</paragraph><paragraph role="heading" level="3">Edit</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/modulepage/edit">Opens the selected macro or dialog for editing.</ahelp></paragraph><paragraph role="heading" level="3">New</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/modulepage/newmodule">Creates a new module.</ahelp></paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/modulepage/newdialog">Creates a new dialog.</ahelp></paragraph><paragraph role="heading" level="3">Libraries tab page</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/modulepage/newdialog">Lets you manage the macro libraries.</ahelp></paragraph><paragraph role="heading" level="3">Location</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/libpage/location">Select the location containing the macro libraries that you want to organize.</ahelp></paragraph><paragraph role="heading" level="3">Library</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/libpage/library">Lists the macro libraries in the chosen location.</ahelp></paragraph><paragraph role="heading" level="3">Edit</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/libpage/edit">Opens the $[officename] Basic editor so that you can modify the selected library.</ahelp></paragraph><paragraph role="heading" level="3">Password</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/libpage/password">Assigns or edits the <link href="text/sbasic/shared/01/06130100.xhp">password</link> for the selected library. "Standard" libraries cannot have a password.</ahelp></paragraph><paragraph role="heading" level="3">New</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/libpage/new">Creates a new library.</ahelp></paragraph><paragraph role="heading" level="3">Name</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/newlibdialog/NewLibDialog">Enter a name for the new module, dialog, or library.</ahelp></paragraph><paragraph role="heading" level="3">Append</paragraph><paragraph role="paragraph"><ahelp hid="modules/BasicIDE/ui/libpage/import">Locate that $[officename] Basic library that you want to add to the current list, and then click Open.</ahelp></paragraph></body></helpdocument>
PK
Nw�X	+�wwtext/sbasic/shared/03080502.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Int Function [Runtime]</title><filename>/text/sbasic/shared/03080502.xhp</filename></topic></meta><body><section id="int"><bookmark branch="index" id="bm_id3153345"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080502.xhp">Int Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the integer portion of a number.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Int</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any valid numeric expression.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleInt</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Int</item><item type="operator">(</item><item type="number">3.99</item><item type="operator">)</item> <item type="comment">' returns the value 3</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Int</item><item type="operator">(</item><item type="number">0</item><item type="operator">)</item> <item type="comment">' returns the value 0</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Int</item><item type="operator">(</item><item type="unknown">-</item><item type="number">3.14159</item><item type="operator">)</item> <item type="comment">' returns the value -4</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XQ~�fBBtext/sbasic/shared/03020414.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>SetAttr Statement [Runtime]</title><filename>/text/sbasic/shared/03020414.xhp</filename></topic></meta><body><section id="setattr"><bookmark branch="index" id="bm_id3147559"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020414.xhp">SetAttr Statement [Runtime]</link></paragraph><paragraph role="paragraph">Sets the attribute information for a specified file.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">SetAttr</item> <item type="identifier">FileName</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="keyword">Attribute</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">FileName: Name of the file, including the path, that you want to test attributes of. If you do not enter a path, <emph>SetAttr</emph> searches for the file in the current directory. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph"><emph>Attribute:</emph> Bit pattern defining the attributes that you want to set or to clear:</paragraph><paragraph role="paragraph"><emph>Value</emph></paragraph><paragraph role="paragraph">0 : Normal files.</paragraph><paragraph role="paragraph">1 : Read-only files.</paragraph><paragraph role="paragraph">32 : File was changed since last backup (Archive bit).</paragraph><paragraph role="paragraph">You can set multiple attributes by combining the respective values with a logic OR statement.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err53"/><embed href="text/sbasic/shared/00000003.xhp#err70"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSetGetAttr</item></paragraph><paragraph role="bascode">    <item type="keyword">On</item> <item type="keyword">Error</item> <item type="keyword">GoTo</item> <item type="identifier">ErrorHandler</item> <item type="comment">' Define target for error handler</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">Dir</item><item type="operator">(</item><item type="string">"C:\test"</item><item type="operator">,</item><item type="number">16</item><item type="operator">)</item><item type="operator">=</item><item type="string">""</item> <item type="keyword">Then</item> <item type="identifier">MkDir</item> <item type="string">"C:\test"</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">Dir</item><item type="operator">(</item><item type="string">"C:\test\autoexec.sav"</item><item type="operator">)</item><item type="operator">=</item><item type="string">""</item> <item type="keyword">Then</item> <item type="identifier">FileCopy</item> <item type="string">"c:\autoexec.bat"</item><item type="operator">,</item> <item type="string">"c:\test\autoexec.sav"</item></paragraph><paragraph role="bascode">            <item type="identifier">SetAttr</item> <item type="string">"c:\test\autoexec.sav"</item> <item type="operator">,</item><item type="number">0</item></paragraph><paragraph role="bascode">            <item type="identifier">FileCopy</item> <item type="string">"c:\autoexec.bat"</item><item type="operator">,</item> <item type="string">"c:\test\autoexec.sav"</item></paragraph><paragraph role="bascode">            <item type="identifier">SetAttr</item> <item type="string">"c:\test\autoexec.sav"</item> <item type="operator">,</item><item type="number">1</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="identifier">GetAttr</item><item type="operator">(</item> <item type="string">"c:\test\autoexec.sav"</item> <item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item></paragraph><paragraph role="bascode"><item type="identifier">ErrorHandler</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="keyword">Error</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��E)
)
text/sbasic/shared/03030106.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Year Function [Runtime]</title><filename>/text/sbasic/shared/03030106.xhp</filename></topic></meta><body><section id="year"><bookmark branch="index" id="bm_id3148664"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030106.xhp">Year Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the year from a serial date number that is generated by the DateSerial or the DateValue function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Year</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Integer expression that contains the serial date number that is used to calculate the year.</paragraph><paragraph role="paragraph">This function is the opposite of the <emph>DateSerial </emph>function, and returns the year of a serial date. For example, the expression:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Print</item> <item type="identifier">Year</item><item type="operator">(</item><item type="identifier">DateSerial</item><item type="operator">(</item><item type="number">1994</item><item type="operator">,</item> <item type="number">12</item><item type="operator">,</item> <item type="number">20</item><item type="operator">)</item><item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">returns the value 1994.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleYear</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">Year</item><item type="operator">(</item><item type="identifier">Now</item><item type="operator">)</item> <item type="operator">,</item><item type="number">64</item><item type="operator">,</item><item type="string">"Current year"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�XV
w��text/sbasic/shared/01030100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IDE Overview</title><filename>/text/sbasic/shared/01030100.xhp</filename></topic></meta><body><bookmark branch="hid/BASCTL_HID_BASICIDE_MODULWINDOW" id="bm_id3093440"/><section id="ueberblick"><paragraph role="heading" level="1"><link href="text/sbasic/shared/01030100.xhp">IDE Overview</link></paragraph></section><paragraph role="paragraph">The <link href="text/sbasic/shared/main0211.xhp"><emph>Macro Toolbar</emph></link> in the IDE provides various icons for editing and testing programs.</paragraph><paragraph role="paragraph">In the <link href="text/sbasic/shared/01030200.xhp"><emph>Editor window</emph></link>, directly below the Macro toolbar, you can edit the Basic program code. The column on the left side is used to set breakpoints in the program code.</paragraph><paragraph role="paragraph">The <link href="text/sbasic/shared/01050100.xhp"><emph>Watch window</emph></link> (observer) is located below the Editor window at the left, and displays the contents of variables or arrays during a single step process.</paragraph><paragraph role="paragraph">The <emph>Call Stack</emph> window to the right provides information about the call stack of SUBS and FUNCTIONS when a program runs.</paragraph><section id="relatedtopics"><paragraph role="paragraph"><link href="text/sbasic/shared/01050000.xhp">Basic IDE</link></paragraph></section></body></helpdocument>
PK
Nw�X�=����text/sbasic/shared/03104400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>HasUnoInterfaces Function [Runtime]</title><filename>/text/sbasic/shared/03104400.xhp</filename></topic></meta><body><section id="hasunointerfaces"><bookmark branch="index" id="bm_id3149987"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03104400.xhp">HasUnoInterfaces Function [Runtime]</link></paragraph><paragraph role="paragraph">Tests if a Basic Uno object supports certain Uno interfaces.</paragraph></section><paragraph role="paragraph">Returns True, if <emph>all</emph> stated Uno interfaces are supported, otherwise False is returned.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">HasUnoInterfaces</item><item type="operator">(</item> <item type="identifier">oTest</item><item type="operator">,</item> <item type="identifier">Uno</item><item type="unknown">-</item><item type="identifier">Interface</item><item type="unknown">-</item><item type="keyword">Name</item> <item type="number">1</item> <item type="identifier">[, Uno-Interface-Name 2, ...]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>oTest:</emph> the Basic Uno object that you want to test.</paragraph><paragraph role="paragraph"><emph>Uno-Interface-Name:</emph> list of Uno interface names.</paragraph><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">bHas = HasUnoInterfaces( oTest, "com.sun.star.beans.XIntrospection" )</paragraph></body></helpdocument>
PK
Nw�XF���jjtext/sbasic/shared/03030201.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Hour Function [Runtime]</title><filename>/text/sbasic/shared/03030201.xhp</filename></topic></meta><body><section id="hour"><bookmark branch="index" id="bm_id3156042"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030201.xhp">Hour Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the hour from a time value that is generated by the TimeSerial or the TimeValue function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Hour</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Numeric expression that contains the serial time value that is used to return the hour value.</paragraph><paragraph role="paragraph">This function is the opposite of the <emph>TimeSerial</emph> function. It returns an integer value that represents the hour from a time value that is generated by the <emph>TimeSerial</emph> or the <emph>TimeValue </emph>function. For example, the expression</paragraph><paragraph role="paragraph">Print Hour(TimeSerial(12,30,41))</paragraph><paragraph role="paragraph">returns the value 12.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">Sub ExampleHour</paragraph><paragraph role="paragraph">Print "The current hour is " &amp; Hour( Now )</paragraph><paragraph role="paragraph">End Sub</paragraph></body></helpdocument>
PK
Nw�X����text/sbasic/shared/03080301.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Randomize Statement [Runtime]</title><filename>/text/sbasic/shared/03080301.xhp</filename></topic></meta><body><section id="randomize"><bookmark branch="index" id="bm_id3150616"/><paragraph role="heading" level="1"><variable id="heading_randomize"><link href="text/sbasic/shared/03080301.xhp">Randomize Statement [Runtime]</link></variable></paragraph><paragraph role="paragraph">Initializes the random-number generator used by the <emph>Rnd</emph> function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Randomize</item> <item type="identifier">[Number]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any integer value. Used as seed to initialize the random-number generator. Equal seeds result in equal random-number sequences by the <emph>Rnd</emph> function. If the parameter is omitted, the <emph>Randomize</emph> statement will be ignored.</paragraph><paragraph role="note">Unless a predictable sequence of numbers is desired, there is no need to use the <emph>Randomize</emph> statement, as the random-number generator will be initialized automatically at first use – it will be seeded using a system-provided random-number generator that produces uniformly-distributed, non-deterministic random numbers. If no such generator is available on the system, the system time will be used as seed.</paragraph><paragraph role="paragraph">The <emph>Randomize</emph> statement affects BASIC's <emph>Rnd</emph> function only. Other random-number generators (for example the Calc's RAND() function, etc.) are not affected by it.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRandomize</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">,</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">,</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iSpectral</item><item type="operator">(</item><item type="number">10</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">Randomize</item> <item type="number">2</item><item type="operator">^</item><item type="number">14</item><item type="unknown">-</item><item type="number">1</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">1000</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="identifier">Int</item><item type="operator">(</item><item type="number">10</item> <item type="operator">*</item> <item type="identifier">Rnd</item><item type="operator">)</item> <item type="comment">' Range from 0 to 9</item></paragraph><paragraph role="bascode">        <item type="identifier">iSpectral</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">iSpectral</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item> <item type="operator">+</item><item type="number">1</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="string">" | "</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">9</item></paragraph><paragraph role="bascode">        <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">sText</item> <item type="operator">&amp;</item> <item type="identifier">iSpectral</item><item type="operator">(</item><item type="identifier">iCount</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">" | "</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sText</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Spectral Distribution"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><section id="relatedtopics"><paragraph role="paragraph"><embedvar href="text/sbasic/shared/03080302.xhp#heading_rnd"/></paragraph></section></body></helpdocument>
PK
Nw�X��I2��text/sbasic/shared/03090408.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Stop Statement [Runtime]</title><filename>/text/sbasic/shared/03090408.xhp</filename></topic></meta><body><section id="stop"><bookmark branch="index" id="bm_id3153311"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090408.xhp">Stop Statement [Runtime]</link></paragraph><paragraph role="paragraph">Stops the execution of the Basic program.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Stop</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleStop</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="number">36</item></paragraph><paragraph role="bascode">    <item type="keyword">Stop</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Sqr</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�XbR�nTTtext/sbasic/shared/03020103.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Open Statement [Runtime]</title><filename>/text/sbasic/shared/03020103.xhp</filename></topic></meta><body><section id="open"><bookmark branch="index" id="bm_id3150791"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020103.xhp">Open Statement [Runtime]</link></paragraph><paragraph role="paragraph">Opens a data channel.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Open</item> <item type="identifier">FileName</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="identifier">[For Mode]</item> <item type="identifier">[Access IOMode]</item> <item type="identifier">[Protected]</item> <item type="keyword">As</item> <item type="identifier">[#]</item><item type="identifier">FileNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item> <item type="identifier">[Len = DatasetLength]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileName: </emph>Name and path of the file that you wan to open. If you try to read a file that does not exist (Access = Read), an error message appears. If you try to write to a file that does not exist (Access = Write), a new file is created.</paragraph><paragraph role="paragraph"><emph>Mode:</emph> Keyword that specifies the file mode. Valid values: Append (append to sequential file), Binary (data can be accessed by bytes using Get and Put), Input (opens data channel for reading), Output (opens data channel for writing), and Random (edits relative files).</paragraph><paragraph role="paragraph"><emph>IOMode:</emph> Keyword that defines the access type. Valid values: Read (read-only), Write (write-only), Read Write (both).</paragraph><paragraph role="paragraph"><emph>Protected:</emph> Keyword that defines the security status of a file after opening. Valid values: Shared (file may be opened by other applications), Lock Read (file is protected against reading), Lock Write (file is protected against writing), Lock Read Write (denies file access).</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> Any integer expression from 0 to 511 to indicate the number of a free data channel. You can then pass commands through the data channel to access the file. The file number must be determined by the FreeFile function immediately before the Open statement.</paragraph><paragraph role="paragraph"><emph>DatasetLength:</emph> For random access files, set the length of the records.</paragraph><paragraph role="note">You can only modify the contents of a file that was opened with the Open statement. If you try to open a file that is already open, an error message appears.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWorkWithAFile</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sLine</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sMsg</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"This is a line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"This is another line of text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">While</item> <item type="keyword">Not</item> <item type="identifier">eof</item><item type="operator">(</item><item type="identifier">iNumber</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="identifier">sLine</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sLine</item> <item type="operator">&lt;</item><item type="operator">&gt;</item><item type="string">""</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="identifier">sMsg</item> <item type="operator">=</item> <item type="identifier">sMsg</item> <item type="operator">&amp;</item> <item type="identifier">sLine</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="keyword">Wend</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sMsg</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�1Z��	�	text/sbasic/shared/03132200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>ThisComponent Statement [Runtime]</title><filename>/text/sbasic/shared/03132200.xhp</filename></topic></meta><body><section id="thiscomponent"><bookmark branch="index" id="bm_id3155342"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03132200.xhp">ThisComponent [Runtime]</link></paragraph><paragraph role="paragraph">Addresses the active component so that its properties can be read and set. ThisComponent is used from document Basic, where it represents the document the Basic belongs to. The type of object accessed by ThisComponent depends on the document type.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">ThisComponent</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Main</item></paragraph><paragraph role="bascode"><item type="comment">' updates the "Table of Contents" in a text doc</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">allindexes</item><item type="operator">,</item> <item type="identifier">index</item> <item type="keyword">As</item> <item type="keyword">Object</item></paragraph><paragraph role="bascode">    <item type="identifier">allindexes</item> <item type="operator">=</item> <item type="identifier">ThisComponent</item><item type="operator">.</item><item type="identifier">getDocumentIndexes</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">index</item> <item type="operator">=</item> <item type="identifier">allindexes</item><item type="operator">.</item><item type="identifier">getByName</item><item type="operator">(</item><item type="string">"Table of Contents1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="comment">' use the default name for Table of Contents and a 1</item></paragraph><paragraph role="bascode">    <item type="identifier">index</item><item type="operator">.</item><item type="identifier">update</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X[�^�text/sbasic/shared/03110000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Comparison Operators</title><filename>/text/sbasic/shared/03110000.xhp</filename></topic></meta><body><section id="vergleich"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03110000.xhp">Comparison Operators</link></paragraph><paragraph role="paragraph">The available comparison operators are described here.</paragraph></section><embed href="text/sbasic/shared/03110100.xhp#operatoren"/></body></helpdocument>
PK
Nw�Xt���text/sbasic/shared/03030303.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Timer Function [Runtime]</title><filename>/text/sbasic/shared/03030303.xhp</filename></topic></meta><body><section id="timer"><bookmark branch="index" id="bm_id3149346"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030303.xhp">Timer Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a value that specifies the number of seconds that have elapsed since midnight.</paragraph></section><paragraph role="note">You must first declare a variable to call the Timer function and assign it the "Long " data type, otherwise a Date value is returned.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Timer</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleTimer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lSec</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">,</item><item type="identifier">lMin</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">,</item><item type="identifier">lHour</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lSec</item> <item type="operator">=</item> <item type="identifier">Timer</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">lSec</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Seconds since midnight"</item></paragraph><paragraph role="bascode">    <item type="identifier">lMin</item> <item type="operator">=</item> <item type="identifier">lSec</item> <item type="unknown">/</item> <item type="number">60</item></paragraph><paragraph role="bascode">    <item type="identifier">lSec</item> <item type="operator">=</item> <item type="identifier">lSec</item> <item type="keyword">Mod</item> <item type="number">60</item></paragraph><paragraph role="bascode">    <item type="identifier">lHour</item> <item type="operator">=</item> <item type="identifier">lMin</item> <item type="unknown">/</item> <item type="number">60</item></paragraph><paragraph role="bascode">    <item type="identifier">lMin</item> <item type="operator">=</item> <item type="identifier">lMin</item> <item type="keyword">Mod</item> <item type="number">60</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Right</item><item type="operator">(</item><item type="string">"00"</item> <item type="operator">&amp;</item> <item type="identifier">lHour</item> <item type="operator">,</item> <item type="number">2</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">":"</item><item type="operator">&amp;</item> <item type="identifier">Right</item><item type="operator">(</item><item type="string">"00"</item> <item type="operator">&amp;</item> <item type="identifier">lMin</item> <item type="operator">,</item> <item type="number">2</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="string">":"</item> <item type="operator">&amp;</item> <item type="identifier">Right</item><item type="operator">(</item><item type="string">"00"</item> <item type="operator">&amp;</item> <item type="identifier">lSec</item> <item type="operator">,</item> <item type="number">2</item><item type="operator">)</item> <item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"The time is"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X��PWWtext/sbasic/shared/01020200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Using Objects</title><filename>/text/sbasic/shared/01020200.xhp</filename></topic></meta><body><section id="objekte"><paragraph role="heading" level="1"><variable id="01020200"><link href="text/sbasic/shared/01020200.xhp">Using the Object Catalog</link></variable></paragraph><paragraph role="paragraph">The object catalog provides an overview of all modules and dialogs you have created in $[officename].</paragraph></section><section id="object_catalog"><paragraph role="paragraph">Click the <emph>Object Catalog</emph> icon 
<image src="cmd/sc_objectcatalog.png"/> in the Macro toolbar to display the object catalog.</paragraph><paragraph role="paragraph">The dialog shows a list of all existing objects in a hierarchical representation. Double-clicking a list entry opens its subordinate objects.</paragraph><paragraph role="paragraph">To display a certain module in the Editor or to position the cursor in a selected SUB or FUNCTION, double click on the corresponding entry.</paragraph></section></body></helpdocument>
PK
Nw�X| Ȣ**text/sbasic/shared/03030110.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DateAdd Function [Runtime]</title><filename>/text/sbasic/shared/03030110.xhp</filename></topic></meta><body><section id="dateadd"><bookmark branch="index" id="bm_id6269417"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030110.xhp">DateAdd Function [Runtime]</link></paragraph><paragraph role="paragraph">Adds a date interval to a given date a number of times and returns the resulting date.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">DateAdd</item> <item type="operator">(</item><item type="identifier">Add</item><item type="operator">,</item> <item type="identifier">Count</item><item type="operator">,</item> <item type="keyword">Date</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">A Variant containing a date.</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">Add - A string expression from the following table, specifying the date interval.</paragraph><section id="datetable"><table><tablerow><tablecell><paragraph role="tablehead">Add (string value)</paragraph></tablecell><tablecell><paragraph role="tablehead">Explanation</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">yyyy</paragraph></tablecell><tablecell><paragraph role="tablecontent">Year</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">q</paragraph></tablecell><tablecell><paragraph role="tablecontent">Quarter</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">m</paragraph></tablecell><tablecell><paragraph role="tablecontent">Month</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">y</paragraph></tablecell><tablecell><paragraph role="tablecontent">Day of year</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">w</paragraph></tablecell><tablecell><paragraph role="tablecontent">Weekday</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">ww</paragraph></tablecell><tablecell><paragraph role="tablecontent">Week of year</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">d</paragraph></tablecell><tablecell><paragraph role="tablecontent">Day</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">h</paragraph></tablecell><tablecell><paragraph role="tablecontent">Hour</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">n</paragraph></tablecell><tablecell><paragraph role="tablecontent">Minute</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">s</paragraph></tablecell><tablecell><paragraph role="tablecontent">Second</paragraph></tablecell></tablerow></table></section><paragraph role="paragraph">Count - A numerical expression specifying how often the Add interval will be added (Count is positive) or subtracted (Count is negative).</paragraph><paragraph role="paragraph">Date - A given date or the name of a Variant variable containing a date. The Add value will be added Count times to this value.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">example_dateadd</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">DateAdd</item><item type="operator">(</item><item type="string">"m"</item><item type="operator">,</item> <item type="number">1</item><item type="operator">,</item> <item type="string">"1/31/2004"</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="string">" - "</item><item type="operator">&amp;</item> <item type="identifier">DateAdd</item><item type="operator">(</item><item type="string">"m"</item><item type="operator">,</item> <item type="number">1</item><item type="operator">,</item> <item type="string">"1/31/2005"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X	J��text/sbasic/shared/03020205.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Write Statement [Runtime]</title><filename>/text/sbasic/shared/03020205.xhp</filename></topic></meta><body><section id="write"><bookmark branch="index" id="bm_id3147229"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020205.xhp">Write Statement [Runtime]</link></paragraph><paragraph role="paragraph">Writes data to a sequential file.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Write</item> <item type="identifier">[#FileName]</item><item type="operator">,</item> <item type="identifier">[Expressionlist]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileName:</emph> Any numeric expression that contains the file number that was set by the Open statement for the respective file.</paragraph><paragraph role="paragraph"><emph>Expressionlist:</emph> Variables or expressions that you want to enter in a file, separated by commas.</paragraph><paragraph role="paragraph">If the expression list is omitted, the <emph>Write</emph> statement appends an empty line to the file.</paragraph><paragraph role="paragraph">To add an expression list to a new or an existing file, the file must be opened in the <emph>Output</emph> or <emph>Append</emph> mode.</paragraph><paragraph role="paragraph">Strings that you write are enclosed by quotation marks and separated by commas. You do not need to enter these delimiters in the expression list.</paragraph><paragraph role="paragraph">Each <emph>Write</emph> statement outputs a line end symbol as last entry.</paragraph><paragraph role="paragraph">Numbers with decimal delimiters are converted according to the locale settings.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWrite</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sValue</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">iCount</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="string">"C:\data.txt"</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="identifier">sValue</item> <item type="operator">=</item> <item type="string">"Hamburg"</item></paragraph><paragraph role="bascode">    <item type="keyword">Write</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">,</item><item type="identifier">sValue</item><item type="operator">,</item><item type="number">200</item></paragraph><paragraph role="bascode">    <item type="identifier">sValue</item> <item type="operator">=</item> <item type="string">"New York"</item></paragraph><paragraph role="bascode">    <item type="keyword">Write</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">,</item><item type="identifier">sValue</item><item type="operator">,</item><item type="number">300</item></paragraph><paragraph role="bascode">    <item type="identifier">sValue</item> <item type="operator">=</item> <item type="string">"Miami"</item></paragraph><paragraph role="bascode">    <item type="keyword">Write</item> <item type="unknown">#</item><item type="identifier">iCount</item><item type="operator">,</item><item type="identifier">sValue</item><item type="operator">,</item><item type="number">450</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XC�H
��text/sbasic/shared/03120311.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Trim Function [Runtime]</title><filename>/text/sbasic/shared/03120311.xhp</filename></topic></meta><body><section id="trim"><bookmark branch="index" id="bm_id3150616"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120311.xhp">Trim Function [Runtime]</link></paragraph><paragraph role="paragraph">Removes all leading and trailing spaces from a string expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Trim</item><item type="operator">(</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSpaces</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText2</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item><item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item><item type="identifier">sOut</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sText2</item> <item type="operator">=</item> <item type="string">" &lt;*Las Vegas*&gt; "</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="string">"'"</item><item type="operator">+</item><item type="identifier">sText2</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Ltrim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = "&lt;*Las Vegas*&gt; "</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item> <item type="string">"'"</item><item type="operator">+</item><item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item> <item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Rtrim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = " &lt;*Las Vegas*&gt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item> <item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Trim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = "&lt;*Las Vegas*&gt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sOut</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�XG�D4��text/sbasic/shared/03010201.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>InputBox Function [Runtime]</title><filename>/text/sbasic/shared/03010201.xhp</filename></topic></meta><body><section id="inputbox"><bookmark branch="index" id="bm_id3148932"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010201.xhp">InputBox Function [Runtime]</link></paragraph><paragraph role="paragraph">Displays a prompt in a dialog at which the user can input text. The input is assigned to a variable.</paragraph></section><paragraph role="paragraph">The <emph>InputBox</emph> statement is a convenient method of entering text through a dialog. Confirm the input by clicking OK or pressing Return. The input is returned as the function return value. If you close the dialog with Cancel, <emph>InputBox</emph> returns a zero-length string ("").</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">InputBox</item> <item type="operator">(</item><item type="identifier">Msg</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="identifier">[, Title As String[, Default As String[, x_pos As Integer, y_pos As Integer]</item><item type="operator">]</item><item type="operator">]</item><item type="operator">]</item><item type="operator">)</item> </paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>Msg</emph>: String expression displayed as the message in the dialog box.</paragraph><paragraph role="paragraph"><emph>Title</emph>: String expression displayed in the title bar of the dialog box.</paragraph><paragraph role="paragraph"><emph>Default</emph>: String expression displayed in the text box as default if no other input is given.</paragraph><paragraph role="paragraph"><emph>x_pos</emph>: Integer expression that specifies the horizontal position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application.</paragraph><paragraph role="paragraph"><emph>y_pos</emph>: Integer expression that specifies the vertical position of the dialog. The position is an absolute coordinate and does not refer to the window of the office application.</paragraph><paragraph role="paragraph">If <emph>x_pos</emph> and <emph>y_pos</emph> are omitted, the dialog is centered on the screen. The position is specified in <link href="text/sbasic/shared/00000002.xhp#twips">twips</link>.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleInputBox</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">InputBox</item> <item type="operator">(</item><item type="string">"Please enter a phrase:"</item><item type="operator">,</item><item type="string">"Dear User"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="operator">(</item> <item type="identifier">sText</item> <item type="operator">,</item> <item type="number">64</item><item type="operator">,</item> <item type="string">"Confirmation of phrase"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�}T���text/sbasic/shared/03120104.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Val Function [Runtime]</title><filename>/text/sbasic/shared/03120104.xhp</filename></topic></meta><body><section id="val"><bookmark branch="index" id="bm_id3149205"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120104.xhp">Val Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a string to a numeric expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Val</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> String that represents a number.</paragraph><paragraph role="paragraph">Using the Val function, you can convert a string that represents numbers into numeric expressions. This is the inverse of the <emph>Str</emph> function. If only part of the string contains numbers, only the first appropriate characters of the string are converted. If the string does not contain any numbers, the <emph>Val</emph> function returns the value 0.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleVal</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Val</item><item type="operator">(</item><item type="string">"123.123"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Val</item><item type="operator">(</item><item type="string">"A123.123"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X\ߗ�PPtext/sbasic/shared/03020302.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Loc Function [Runtime]</title><filename>/text/sbasic/shared/03020302.xhp</filename></topic></meta><body><section id="loc"><bookmark branch="index" id="bm_id3148663"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020302.xhp">Loc Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the current position in an open file.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Loc</item><item type="operator">(</item><item type="identifier">FileNumber</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> Any numeric expression that contains the file number that is set by the Open statement for the respective file.</paragraph><paragraph role="paragraph">If the Loc function is used for an open random access file, it returns the number of the last record that was last read or written.</paragraph><paragraph role="paragraph">For a sequential file, the Loc function returns the position in a file divided by 128. For binary files, the position of the last read or written byte is returned.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err52"/></body></helpdocument>
PK
Nw�XcU3j��text/sbasic/shared/03090303.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>On...GoSub Statement; On...GoTo Statement [Runtime]</title><filename>/text/sbasic/shared/03090303.xhp</filename></topic></meta><body><section id="ongosub"><bookmark branch="index" id="bm_id3153897"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090303.xhp">On...GoSub Statement; On...GoTo Statement [Runtime]</link></paragraph><paragraph role="paragraph">Branches to one of several specified lines in the program code, depending on the value of a numeric expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">On</item> <item type="identifier">N</item> <item type="keyword">GoSub</item> <item type="identifier">Label1</item><item type="identifier">[, Label2[, Label3[,...]</item><item type="operator">]</item><item type="operator">]</item></paragraph><paragraph role="bascode"><item type="keyword">On</item> <item type="identifier">NumExpression</item> <item type="keyword">GoTo</item> <item type="identifier">Label1</item><item type="identifier">[, Label2[, Label3[,...]</item><item type="operator">]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>NumExpression:</emph> Any numeric expression between 0 and 255 that determines which of the lines the program branches to. If NumExpression is 0, the statement is not executed. If NumExpression is greater than 0, the program jumps to the label that has a position number that corresponds to the expression (1 = First label; 2 = Second label)</paragraph><paragraph role="paragraph"><emph>Label:</emph> Target line according to<emph> GoTo </emph>or <emph>GoSub</emph> structure.</paragraph><paragraph role="note">The <emph>GoTo</emph> or <emph>GoSub </emph>conventions are valid.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleOnGosub</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="number">2</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item><item type="string">""</item></paragraph><paragraph role="bascode">    <item type="keyword">On</item> <item type="identifier">iVar</item> <item type="keyword">GoSub</item> <item type="identifier">Sub1</item><item type="operator">,</item> <item type="identifier">Sub2</item></paragraph><paragraph role="bascode">    <item type="keyword">On</item> <item type="identifier">iVar</item> <item type="keyword">GoTo</item> <item type="identifier">Line1</item><item type="operator">,</item> <item type="identifier">Line2</item></paragraph><paragraph role="bascode">    <item type="keyword">Exit</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"><item type="identifier">Sub1</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item><item type="identifier">sVar</item> <item type="operator">&amp;</item> <item type="string">" From Sub 1 to"</item> <item type="parameter">:</item> <item type="keyword">Return</item></paragraph><paragraph role="bascode"><item type="identifier">Sub2</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item><item type="identifier">sVar</item> <item type="operator">&amp;</item> <item type="string">" From Sub 2 to"</item> <item type="parameter">:</item> <item type="keyword">Return</item></paragraph><paragraph role="bascode"><item type="identifier">Line1</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item><item type="identifier">sVar</item> <item type="operator">&amp;</item> <item type="string">" Label 1"</item> <item type="parameter">:</item> <item type="keyword">GoTo</item> <item type="identifier">Ende</item></paragraph><paragraph role="bascode"><item type="identifier">Line2</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item><item type="identifier">sVar</item> <item type="operator">&amp;</item> <item type="string">" Label 2"</item></paragraph><paragraph role="bascode"><item type="identifier">Ende</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sVar</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"On...GoSub"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X8�]�y
y
text/sbasic/shared/03101400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefDbl Statement [Runtime]</title><filename>/text/sbasic/shared/03101400.xhp</filename></topic></meta><body><section id="defdbl"><bookmark branch="index" id="bm_id3147242"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101400.xhp">DefDbl Statement [Runtime]</link></paragraph><paragraph role="paragraph">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set the default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Default variable type</paragraph><paragraph role="paragraph"><emph>DefDbl:</emph> Double</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definitions for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefDBL</item></paragraph><paragraph role="bascode">    <item type="identifier">dValue</item><item type="operator">=</item><item type="number">1.23e43</item> <item type="comment">' dValue is an implicit double variable type</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��1::text/sbasic/shared/03050100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Erl Function [Runtime]</title><filename>/text/sbasic/shared/03050100.xhp</filename></topic></meta><body><section id="erl"><bookmark branch="index" id="bm_id3157896"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03050100.xhp">Erl Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the line number where an error occurred during program execution.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Erl</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="note">The Erl function only returns a line number, and not a line label.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleError</item></paragraph><paragraph role="bascode"><item type="keyword">On</item> <item type="keyword">Error</item> <item type="keyword">GoTo</item> <item type="identifier">ErrorHandler</item> <item type="comment">' Set up error handler</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="comment">' Error caused by non-existent file</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="string">"\file9879.txt"</item> <item type="keyword">For</item> <item type="keyword">Input</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iVar</item></paragraph><paragraph role="bascode">    <item type="keyword">Line</item> <item type="keyword">Input</item> <item type="unknown">#</item><item type="identifier">iVar</item><item type="operator">,</item> <item type="identifier">sVar</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iVar</item></paragraph><paragraph role="bascode">    <item type="keyword">Exit</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"><item type="identifier">ErrorHandler</item><item type="parameter">:</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"Error "</item> <item type="operator">&amp;</item> <item type="identifier">err</item> <item type="operator">&amp;</item> <item type="string">": "</item> <item type="operator">&amp;</item> <item type="identifier">Error$</item> <item type="operator">+</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">+</item> <item type="string">"In Line : "</item> <item type="operator">+</item> <item type="identifier">Erl</item> <item type="operator">+</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">+</item> <item type="identifier">Now</item> <item type="operator">,</item> <item type="number">16</item> <item type="operator">,</item><item type="string">"An error occurred"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X���text/sbasic/shared/03060200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Eqv Operator [Runtime]</title><filename>/text/sbasic/shared/03060200.xhp</filename></topic></meta><body><section id="eqv"><bookmark branch="index" id="bm_id3156344"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03060200.xhp">Eqv Operator [Runtime]</link></paragraph><paragraph role="paragraph">Calculates the logical equivalence of two expressions.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="keyword">Eqv</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numeric variable that contains the result of the comparison.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any expressions that you want to compare.</paragraph><paragraph role="paragraph">When testing for equivalence between Boolean expressions, the result is <emph>True</emph> if both expressions are either <emph>True</emph> or <emph>False</emph>.</paragraph><paragraph role="paragraph">In a bit-wise comparison, the Eqv operator only sets the corresponding bit in the result if a bit is set in both expressions, or in neither expression.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleEqv</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">A</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">B</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">C</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">D</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vOut</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">A</item> <item type="operator">=</item> <item type="number">10</item><item type="parameter">:</item> <item type="identifier">B</item> <item type="operator">=</item> <item type="number">8</item><item type="parameter">:</item> <item type="identifier">C</item> <item type="operator">=</item> <item type="number">6</item><item type="parameter">:</item> <item type="identifier">D</item> <item type="operator">=</item> <item type="identifier">Null</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">A</item> <item type="operator">&gt;</item> <item type="identifier">B</item> <item type="keyword">Eqv</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">C</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">A</item> <item type="keyword">Eqv</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">C</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">A</item> <item type="operator">&gt;</item> <item type="identifier">B</item> <item type="keyword">Eqv</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">D</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="operator">(</item><item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">D</item> <item type="keyword">Eqv</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">A</item><item type="operator">)</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">B</item> <item type="keyword">Eqv</item> <item type="identifier">A</item> <item type="comment">' returns -3</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��Σ.
.
text/sbasic/shared/03070400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>"/" Operator [Runtime]</title><filename>/text/sbasic/shared/03070400.xhp</filename></topic></meta><body><section id="division"><bookmark branch="index" id="bm_id3150669"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03070400.xhp">"/" Operator [Runtime]</link></paragraph><paragraph role="paragraph">Divides two values.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="unknown">/</item> <item type="identifier">Expression2</item> </paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numerical value that contains the result of the division.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any numerical expressions that you want to divide.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDivision1</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">5</item> <item type="unknown">/</item> <item type="number">5</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDivision2</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iValue1</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iValue2</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iValue1</item> <item type="operator">=</item> <item type="number">5</item></paragraph><paragraph role="bascode">    <item type="identifier">iValue2</item> <item type="operator">=</item> <item type="number">10</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">iValue1</item> <item type="unknown">/</item> <item type="identifier">iValue2</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��_z
z
text/sbasic/shared/03101600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefLng Statement [Runtime]</title><filename>/text/sbasic/shared/03101600.xhp</filename></topic></meta><body><section id="deflng"><bookmark branch="index" id="bm_id3148538"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101600.xhp">DefLng Statement [Runtime]</link></paragraph><paragraph role="paragraph">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set the default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword: </emph>Default variable type</paragraph><paragraph role="paragraph"><emph>DefLng:</emph> Long</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definitions for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefLng</item></paragraph><paragraph role="bascode">    <item type="identifier">lCount</item><item type="operator">=</item><item type="number">123456789</item> <item type="comment">' lCount is an implicit long integer variable</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��D��text/sbasic/shared/03120100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>ASCII/ANSI Conversion in Strings</title><filename>/text/sbasic/shared/03120100.xhp</filename></topic></meta><body><section id="ascii"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120100.xhp">ASCII/ANSI Conversion in Strings</link></paragraph><paragraph role="paragraph">The following functions convert strings to and from ASCII or ANSI code.</paragraph></section><embed href="text/sbasic/shared/03120101.xhp#asc"/><embed href="text/sbasic/shared/03120102.xhp#chr"/><embed href="text/sbasic/shared/03120103.xhp#str"/><embed href="text/sbasic/shared/03120104.xhp#val"/><embed href="text/sbasic/shared/03120105.xhp#cbyte"/></body></helpdocument>
PK
Nw�X~*�	�	text/sbasic/shared/03020415.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FileExists Function [Runtime]</title><filename>/text/sbasic/shared/03020415.xhp</filename></topic></meta><body><section id="fileexists"><bookmark branch="index" id="bm_id3148946"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020415.xhp">FileExists Function [Runtime]</link></paragraph><paragraph role="paragraph">Determines if a file or a directory is available on the data medium.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FileExists</item><item type="operator">(</item><item type="identifier">FileName</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">|</item> <item type="identifier">DirectoryName</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">FileName | DirectoryName: Any string expression that contains an unambiguous file specification. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleFileExists</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">FileExists</item><item type="operator">(</item><item type="string">"C:\autoexec.bat"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">FileExists</item><item type="operator">(</item><item type="string">"file:///d|/bookmark.htm"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">FileExists</item><item type="operator">(</item><item type="string">"file:///d|/Private"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X%cD
D
text/sbasic/shared/03103900.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FindPropertyObject Function [Runtime]</title><filename>/text/sbasic/shared/03103900.xhp</filename></topic></meta><body><section id="findpropertyobject"><bookmark branch="index" id="bm_id3146958"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103900.xhp">FindPropertyObject Function [Runtime]</link></paragraph><paragraph role="paragraph">Enables objects to be addressed at run-time as a string parameter using the object name.</paragraph></section><paragraph role="paragraph">For instance, the command:</paragraph><paragraph role="paragraph">MyObj.Prop1.Command = 5</paragraph><paragraph role="paragraph">corresponds to the following command block:</paragraph><paragraph role="paragraph">Dim ObjVar as Object</paragraph><paragraph role="paragraph">Dim ObjProp as Object</paragraph><paragraph role="paragraph">ObjName As String = "MyObj"</paragraph><paragraph role="paragraph">ObjVar = FindObject( ObjName As String )</paragraph><paragraph role="paragraph">PropName As String = "Prop1"</paragraph><paragraph role="paragraph">ObjProp = FindPropertyObject( ObjVar, PropName As String )</paragraph><paragraph role="paragraph">ObjProp.Command = 5</paragraph><paragraph role="paragraph">To dynamically create Names at run-time, use:</paragraph><paragraph role="paragraph">"TextEdit1" to TextEdit5" in a loop to create five names.</paragraph><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03103800.xhp">FindObject</link></paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FindPropertyObject</item><item type="operator">(</item> <item type="identifier">ObjVar</item><item type="operator">,</item> <item type="identifier">PropName</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>ObjVar:</emph> Object variable that you want to dynamically define at run-time.</paragraph><paragraph role="paragraph"><emph>PropName:</emph> String that specifies the name of the property that you want to address at run-time.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err12"/><embed href="text/sbasic/shared/00000003.xhp#err14"/><embed href="text/sbasic/shared/00000003.xhp#err52"/><embed href="text/sbasic/shared/00000003.xhp#err57"/></body></helpdocument>
PK
Nw�XRB!IItext/sbasic/shared/03120305.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>LTrim Function [Runtime]</title><filename>/text/sbasic/shared/03120305.xhp</filename></topic></meta><body><section id="ltrim"><bookmark branch="index" id="bm_id3147574"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120305.xhp">LTrim Function [Runtime]</link></paragraph><paragraph role="paragraph">Removes all leading spaces at the start of a string expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">LTrim</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression.</paragraph><paragraph role="paragraph">Use this function to remove spaces at the beginning of a string expression.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSpaces</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText2</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item><item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item><item type="identifier">sOut</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sText2</item> <item type="operator">=</item> <item type="string">" &lt;*Las Vegas*&gt; "</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="string">"'"</item><item type="operator">+</item><item type="identifier">sText2</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Ltrim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = "&lt;*Las Vegas*&gt; "</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item> <item type="string">"'"</item><item type="operator">+</item><item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item> <item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Rtrim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = " &lt;*Las Vegas*&gt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item> <item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Trim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = "&lt;*Las Vegas*&gt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sOut</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�ih�00text/sbasic/shared/03131800.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CreateUnoDialog Function [Runtime]</title><filename>/text/sbasic/shared/03131800.xhp</filename></topic></meta><body><section id="createunodialog"><bookmark branch="index" id="bm_id3150040"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03131800.xhp">CreateUnoDialog Function [Runtime]</link></paragraph><paragraph role="paragraph">Creates a Basic Uno object that represents a Uno dialog control during Basic runtime.</paragraph></section><paragraph role="paragraph">Dialogs are defined in the dialog libraries. To display a dialog, a "live" dialog must be created from the library.</paragraph><paragraph role="paragraph">See <link href="text/sbasic/guide/sample_code.xhp">Examples</link>.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CreateUnoDialog</item><item type="operator">(</item> <item type="identifier">oDlgDesc</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">' Get dialog description from the dialog library</paragraph><paragraph role="paragraph">oDlgDesc = DialogLibraries.Standard.Dialog1</paragraph><paragraph role="paragraph">' generate "live" dialog</paragraph><paragraph role="paragraph">oDlgControl = CreateUnoDialog( oDlgDesc )</paragraph><paragraph role="paragraph">' display "live" dialog</paragraph><paragraph role="paragraph">oDlgControl.execute</paragraph></body></helpdocument>
PK
Mw�Xo�|���text/sbasic/shared/03010303.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Red Function [Runtime]</title><filename>/text/sbasic/shared/03010303.xhp</filename></topic></meta><body><section id="red"><bookmark branch="index" id="bm_id3148947"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010303.xhp">Red Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the Red component of the specified color code.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Red</item> <item type="operator">(</item><item type="identifier">ColorNumber</item> <item type="keyword">As</item> <item type="keyword">Long</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>ColorNumber</emph>: Long integer expression that specifies any <link href="text/sbasic/shared/00000003.xhp#farbcodes">color code</link> for which to return the Red component.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleColor</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lVar</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lVar</item> <item type="operator">=</item> <item type="identifier">rgb</item><item type="operator">(</item><item type="number">128</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="number">200</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">"The color "</item> <item type="operator">&amp;</item> <item type="identifier">lVar</item> <item type="operator">&amp;</item> <item type="string">" consists of:"</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"red= "</item> <item type="operator">&amp;</item> <item type="identifier">red</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"green= "</item> <item type="operator">&amp;</item> <item type="identifier">green</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item><item type="identifier">_</item></paragraph><paragraph role="bascode">        <item type="string">"blue= "</item> <item type="operator">&amp;</item> <item type="identifier">blue</item><item type="operator">(</item><item type="identifier">lVar</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">,</item> <item type="number">64</item><item type="operator">,</item><item type="string">"colors"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XYb�fftext/sbasic/shared/03100050.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CCur Function [Runtime]</title><filename>/text/sbasic/shared/03100050.xhp</filename></topic></meta><body><section id="ccur"><bookmark branch="index" id="bm_id8926053"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100050.xhp">CCur Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a string expression or numeric expression to a currency expression. The locale settings are used for decimal separators and currency symbols.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CCur</item><item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Currency</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph">Expression: Any string or numeric expression that you want to convert.</paragraph></body></helpdocument>
PK
Nw�X-�
o�
�
text/sbasic/shared/03120403.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>StrComp Function [Runtime]</title><filename>/text/sbasic/shared/03120403.xhp</filename></topic></meta><body><section id="strcomp"><bookmark branch="index" id="bm_id3156027"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120403.xhp">StrComp Function [Runtime]</link></paragraph><paragraph role="paragraph">Compares two strings and returns an integer value that represents the result of the comparison.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">StrComp</item> <item type="operator">(</item><item type="identifier">Text1</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">Text2</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="identifier">[, Compare]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>Text1:</emph> Any string expression</paragraph><paragraph role="paragraph"><emph>Text2:</emph> Any string expression</paragraph><paragraph role="paragraph"><emph>Compare:</emph> This optional parameter sets the comparison method. If Compare = 1, the string comparison is case-sensitive. If Compare = 0, no distinction is made between uppercase and lowercase letters.</paragraph><paragraph role="heading" level="3">Return value</paragraph><list type="unordered"><listitem><paragraph role="listitem">If Text1 &lt; Text2 the function returns -1</paragraph></listitem><listitem><paragraph role="listitem">If Text1 = Text2 the function returns 0</paragraph></listitem><listitem><paragraph role="listitem">If Text1 &gt; Text2 the function returns 1</paragraph></listitem></list><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleStrComp</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="number">123.123</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">Str$</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">strcomp</item><item type="operator">(</item><item type="identifier">sVar</item> <item type="operator">,</item> <item type="identifier">Str$</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item><item type="operator">,</item><item type="number">1</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xj�

text/sbasic/shared/03080102.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Cos Function [Runtime]</title><filename>/text/sbasic/shared/03080102.xhp</filename></topic></meta><body><section id="cos"><bookmark branch="index" id="bm_id3154923"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080102.xhp">Cos Function [Runtime]</link></paragraph><paragraph role="paragraph">Calculates the cosine of an angle. The angle is specified in radians. The result lies between -1 and 1.</paragraph></section><paragraph role="paragraph">Using the angle Alpha, the Cos-Function calculates the ratio of the length of the side that is adjacent to the angle, divided by the length of the hypotenuse in a right-angled triangle.</paragraph><paragraph role="paragraph">Cos(Alpha) = Adjacent/Hypotenuse</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Cos</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Numeric expression that specifies an angle in radians that you want to calculate the cosine for.</paragraph><paragraph role="paragraph">To convert degrees to radians, multiply degrees by pi/180. To convert radians to degrees, multiply radians by 180/pi.</paragraph><paragraph role="paragraph">degree=(radian*180)/pi</paragraph><paragraph role="paragraph">radian=(degree*pi)/180</paragraph><paragraph role="paragraph">Pi is here the fixed circle constant with the rounded value 3.14159...</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' The following example allows for a right-angled triangle the input of</item></paragraph><paragraph role="bascode"><item type="comment">' secant and angle (in degrees) and calculates the length of the hypotenuse:</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCosinus</item></paragraph><paragraph role="bascode"><item type="comment">' rounded Pi = 3.14159</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">d1</item> <item type="keyword">As</item> <item type="keyword">Double</item><item type="operator">,</item> <item type="identifier">dAngle</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode">    <item type="identifier">d1</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the length of the adjacent side: "</item><item type="operator">,</item><item type="string">"Adjacent"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">dAngle</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the angle Alpha (in degrees): "</item><item type="operator">,</item><item type="string">"Alpha"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"The length of the hypothenuse is"</item><item type="operator">;</item> <item type="operator">(</item><item type="identifier">d1</item> <item type="unknown">/</item> <item type="identifier">cos</item> <item type="operator">(</item><item type="identifier">dAngle</item> <item type="operator">*</item> <item type="identifier">Pi</item> <item type="unknown">/</item> <item type="number">180</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X=F�h66text/sbasic/shared/01030200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>The Basic Editor</title><filename>/text/sbasic/shared/01030200.xhp</filename></topic></meta><body><section id="basiceditor"><bookmark branch="index" id="bm_id3148647"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01030200.xhp">The Basic Editor</link></paragraph></section><paragraph role="paragraph">The Basic Editor provides the standard editing functions you are familiar with when working in a text document. It supports the functions of the <emph>Edit</emph> menu (Cut, Delete, Paste), the ability to select text with the Shift key, as well as cursor positioning functions (for example, moving from word to word with <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline> and the arrow keys).</paragraph><paragraph role="paragraph">Long lines can be split into several parts by inserting a space and an underline character _ as the last two characters of a line. This connects the line with the following line to one logical line. (If "Option Compatible" is used in the same Basic module, the line continuation feature is also valid for comment lines.)</paragraph><paragraph role="paragraph">If you press the <emph>Run BASIC</emph> icon on the <emph>Macro</emph> bar, program execution starts at the first line of the Basic editor. The program executes the first Sub or Function and then program execution stops. The "Sub Main" does not take precedence on program execution.</paragraph><paragraph role="tip">Insert your Basic code between the Sub Main and End Sub lines that you see when you first open the IDE. Alternatively, delete all lines and then enter your own Basic code.</paragraph><paragraph role="heading" level="2">Navigating in a Project</paragraph><paragraph role="heading" level="3">The Library List</paragraph><paragraph role="paragraph">Select a library from the <emph>Library</emph> list at the left of the toolbar to load the library in the editor. The first module of the selected library will be displayed.</paragraph><paragraph role="heading" level="3">The Object Catalog</paragraph><embed href="text/sbasic/shared/01020200.xhp#object_catalog"/><paragraph role="heading" level="2">Saving and Loading Basic Source Code</paragraph><paragraph role="paragraph">You can save Basic code in a text file for saving and importing in other programming systems.</paragraph><paragraph role="warning">You cannot save Basic dialogs to a text file.</paragraph><paragraph role="heading" level="3">Saving Source Code to a Text File</paragraph><list type="ordered"><listitem><paragraph role="listitem">Select the module that you want to export as text from the object catalog.</paragraph></listitem><listitem><paragraph role="listitem">Click the <emph>Save Source As</emph> icon in the Macro toolbar.</paragraph></listitem><listitem><paragraph role="listitem">Select a file name and click <emph>OK</emph> to save the file.</paragraph></listitem></list><paragraph role="heading" level="3">Loading Source Code From a Text File</paragraph><list type="ordered"><listitem><paragraph role="listitem">Select the module where you want to import the source code from the object catalog.</paragraph></listitem><listitem><paragraph role="listitem">Position the cursor where you want to insert the program code.</paragraph></listitem><listitem><paragraph role="listitem">Click the <emph>Insert Source Text</emph> icon in the Macro toolbar.</paragraph></listitem><listitem><paragraph role="listitem">Select the text file containing the source code and click <emph>OK</emph>.</paragraph></listitem></list><section id="relatedtopics"><paragraph role="paragraph"><link href="text/sbasic/shared/01050000.xhp">Basic IDE</link></paragraph><embed href="text/sbasic/shared/01020200.xhp#01020200"/></section></body></helpdocument>
PK
Nw�X��Qhhtext/sbasic/shared/03080000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Numeric Functions</title><filename>/text/sbasic/shared/03080000.xhp</filename></topic></meta><body><section id="nummer"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080000.xhp">Numeric Functions</link></paragraph><paragraph role="paragraph">The following numeric functions perform calculations. Mathematical and Boolean operators are described in a separate section. Functions differ from operators in that functions pass arguments and return a result, instead of operators that return a result by combining two numeric expressions.</paragraph></section><embed href="text/sbasic/shared/03080100.xhp#trigo"/><embed href="text/sbasic/shared/03080200.xhp#loga"/><embed href="text/sbasic/shared/03080300.xhp#zufall"/><embed href="text/sbasic/shared/03080400.xhp#quadrat"/><embed href="text/sbasic/shared/03080500.xhp#ganzzahl"/><embed href="text/sbasic/shared/03080600.xhp#absolut"/><embed href="text/sbasic/shared/03080700.xhp#vorzeichen"/><embed href="text/sbasic/shared/03080800.xhp#umwandeln"/></body></helpdocument>
PK
Nw�Xm��~~text/sbasic/shared/03120304.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>LSet Statement [Runtime]</title><filename>/text/sbasic/shared/03120304.xhp</filename></topic></meta><body><section id="lset"><bookmark branch="index" id="bm_id3143268"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120304.xhp">LSet Statement [Runtime]</link></paragraph><paragraph role="paragraph">Aligns a string to the left of a string variable, or copies a variable of a user-defined type to another variable of a different user-defined type.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">LSet</item> <item type="identifier">Var</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">=</item> <item type="keyword">Text</item> <item type="keyword">or</item> <item type="keyword">LSet</item> <item type="identifier">Var1</item> <item type="operator">=</item> <item type="identifier">Var2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Var:</emph> Any String variable that contains the string that you want align to the left.</paragraph><paragraph role="paragraph"><emph>Text:</emph> String that you want to align to the left of the string variable.</paragraph><paragraph role="paragraph"><emph>Var1:</emph> Name of the user-defined type variable that you want to copy to.</paragraph><paragraph role="paragraph"><emph>Var2:</emph> Name of the user-defined type variable that you want to copy from.</paragraph><paragraph role="paragraph">If the string is shorter than the string variable, <emph>LSet</emph> left-aligns the string within the string variable. Any remaining positions in the string variable are replaced by spaces. If the string is longer than the string variable, only the leftmost characters up to the length of the string variable are copied. With the <emph>LSet</emph> statement, you can also copy a user-defined type variable to another variable of the same type.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRLSet</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sExpr</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">40</item><item type="operator">,</item><item type="string">"*"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sExpr</item> <item type="operator">=</item> <item type="string">"SBX"</item></paragraph><paragraph role="bascode">    <item type="comment">' Align "SBX" within the 40-character reference string</item></paragraph><paragraph role="bascode">    <item type="comment">' Replace asterisks with spaces</item></paragraph><paragraph role="bascode">    <item type="keyword">RSet</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">sExpr</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"&gt;"</item><item type="operator">;</item> <item type="identifier">sVar</item><item type="operator">;</item> <item type="string">"&lt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">5</item><item type="operator">,</item><item type="string">"*"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sExpr</item> <item type="operator">=</item> <item type="string">"123457896"</item></paragraph><paragraph role="bascode">    <item type="keyword">RSet</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">sExpr</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"&gt;"</item><item type="operator">;</item> <item type="identifier">sVar</item><item type="operator">;</item> <item type="string">"&lt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">40</item><item type="operator">,</item><item type="string">"*"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sExpr</item> <item type="operator">=</item> <item type="string">"SBX"</item></paragraph><paragraph role="bascode">    <item type="comment">' Left-align "SBX" within the 40-character reference string</item></paragraph><paragraph role="bascode">    <item type="keyword">LSet</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">sExpr</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"&gt;"</item><item type="operator">;</item> <item type="identifier">sVar</item><item type="operator">;</item> <item type="string">"&lt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="keyword">String</item><item type="operator">(</item><item type="number">5</item><item type="operator">,</item><item type="string">"*"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sExpr</item> <item type="operator">=</item> <item type="string">"123456789"</item></paragraph><paragraph role="bascode">    <item type="keyword">LSet</item> <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">sExpr</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"&gt;"</item><item type="operator">;</item> <item type="identifier">sVar</item><item type="operator">;</item> <item type="string">"&lt;"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�Uf66text/sbasic/shared/03100080.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CVErr Function [Runtime]</title><filename>/text/sbasic/shared/03100080.xhp</filename></topic></meta><body><section id="cverr"><bookmark branch="index" id="bm_id531022"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100080.xhp">CVErr Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a string expression or numeric expression to a variant expression of the sub type "Error".</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CVErr</item><item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Variant.</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph">Expression: Any string or numeric expression that you want to convert.</paragraph></body></helpdocument>
PK
Nw�X���!!text/sbasic/shared/03100060.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDec Function [Runtime]</title><filename>/text/sbasic/shared/03100060.xhp</filename></topic></meta><body><section id="cdec"><bookmark branch="index" id="bm_id863979"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100060.xhp">CDec Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a string expression or numeric expression to a decimal expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDec</item><item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Decimal number.</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph">Expression: Any string or numeric expression that you want to convert.</paragraph></body></helpdocument>
PK
Nw�XŖ��EEtext/sbasic/shared/03080401.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Sqr Function [Runtime]</title><filename>/text/sbasic/shared/03080401.xhp</filename></topic></meta><body><section id="sqr"><bookmark branch="index" id="bm_id3156027"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080401.xhp">Sqr Function [Runtime]</link></paragraph><paragraph role="paragraph">Calculates the square root of a numeric expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Sqr</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numeric expression that you want to calculate the square root for.</paragraph><paragraph role="paragraph">A square root is the number that you multiply by itself to produce another number, for example, the square root of 36 is 6.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSqr</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="number">36</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Sqr</item><item type="operator">(</item><item type="identifier">iVar</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��ͨ��text/sbasic/shared/03060100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>AND Operator [Runtime]</title><filename>/text/sbasic/shared/03060100.xhp</filename></topic></meta><body><section id="and"><bookmark branch="index" id="bm_id3146117"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03060100.xhp">AND Operator [Runtime]</link></paragraph><paragraph role="paragraph">Logically combines two expressions.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="keyword">And</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numeric variable that records the result of the combination.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any expressions that you want to combine.</paragraph><paragraph role="paragraph">Boolean expressions combined with AND only return the value <emph>True</emph> if both expressions evaluate to <emph>True</emph>:</paragraph><paragraph role="paragraph"><emph>True</emph> AND <emph>True</emph> returns <emph>True</emph>; for all other combinations the result is <emph>False</emph>.</paragraph><paragraph role="paragraph">The AND operator also performs a bitwise comparison of identically positioned bits in two numeric expressions.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleAnd</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">A</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">B</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">C</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">D</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vVarOut</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">A</item> <item type="operator">=</item> <item type="number">10</item><item type="parameter">:</item> <item type="identifier">B</item> <item type="operator">=</item> <item type="number">8</item><item type="parameter">:</item> <item type="identifier">C</item> <item type="operator">=</item> <item type="number">6</item><item type="parameter">:</item> <item type="identifier">D</item> <item type="operator">=</item> <item type="identifier">Null</item></paragraph><paragraph role="bascode">    <item type="identifier">vVarOut</item> <item type="operator">=</item> <item type="identifier">A</item> <item type="operator">&gt;</item> <item type="identifier">B</item> <item type="keyword">And</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">C</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vVarOut</item> <item type="operator">=</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">A</item> <item type="keyword">And</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">C</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vVarOut</item> <item type="operator">=</item> <item type="identifier">A</item> <item type="operator">&gt;</item> <item type="identifier">B</item> <item type="keyword">And</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">D</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vVarOut</item> <item type="operator">=</item> <item type="operator">(</item><item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">D</item> <item type="keyword">And</item> <item type="identifier">B</item> <item type="operator">&gt;</item> <item type="identifier">A</item><item type="operator">)</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vVarOut</item> <item type="operator">=</item> <item type="identifier">B</item> <item type="keyword">And</item> <item type="identifier">A</item> <item type="comment">' returns 8 due to the bitwise And combination of both arguments</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��ұ,,text/sbasic/shared/03102200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>IsArray Function [Runtime]</title><filename>/text/sbasic/shared/03102200.xhp</filename></topic></meta><body><section id="isarray"><bookmark branch="index" id="bm_id3154346"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102200.xhp">IsArray Function [Runtime]</link></paragraph><paragraph role="paragraph">Determines if a variable is a data field in an array.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">IsArray</item> <item type="operator">(</item><item type="identifier">Var</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Var:</emph> Any variable that you want to test if it is declared as an array. If the variable is an array, then the function returns <emph>True</emph>, otherwise <emph>False </emph>is returned.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleIsArray</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sDatf</item><item type="operator">(</item><item type="number">10</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">isarray</item><item type="operator">(</item><item type="identifier">sdatf</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�hU�
�
text/sbasic/shared/03090405.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FreeLibrary Function [Runtime]</title><filename>/text/sbasic/shared/03090405.xhp</filename></topic></meta><body><section id="freelibrary"><bookmark branch="index" id="bm_id3143270"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090405.xhp">FreeLibrary Function [Runtime]</link></paragraph><paragraph role="paragraph">Releases DLLs that were loaded by a Declare statement. A released DLL is automatically reloaded if one of its functions is called. See also: <link href="text/sbasic/shared/03090403.xhp">Declare</link></paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FreeLibrary</item> <item type="operator">(</item><item type="identifier">LibName</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>LibName:</emph> String expression that specifies the name of the DLL.</paragraph><paragraph role="note">FreeLibrary can only release DLLs that are loaded during Basic runtime.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Declare</item> <item type="keyword">Sub</item> <item type="identifier">MyMessageBeep</item> <item type="keyword">Lib</item> <item type="string">"user32.dll"</item> <item type="keyword">Alias</item> <item type="string">"MessageBeep"</item> <item type="operator">(</item> <item type="keyword">Long</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDeclare</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lValue</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lValue</item> <item type="operator">=</item> <item type="number">5000</item></paragraph><paragraph role="bascode">    <item type="identifier">MyMessageBeep</item><item type="operator">(</item> <item type="identifier">lValue</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">FreeLibrary</item><item type="operator">(</item><item type="string">"user32.dll"</item> <item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xb�@��text/sbasic/shared/03070000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Mathematical Operators</title><filename>/text/sbasic/shared/03070000.xhp</filename></topic></meta><body><section id="mathe"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03070000.xhp">Mathematical Operators</link></paragraph><paragraph role="paragraph">The following mathematical operators are supported in $[officename] Basic.</paragraph></section><paragraph role="paragraph">This chapter provides a short overview of all of the arithmetical operators that you may need for calculations within a program.</paragraph><embed href="text/sbasic/shared/03070100.xhp#subtraktion"/><embed href="text/sbasic/shared/03070200.xhp#multiplikation"/><embed href="text/sbasic/shared/03070300.xhp#addition"/><embed href="text/sbasic/shared/03070400.xhp#division"/><embed href="text/sbasic/shared/03070500.xhp#potenz"/><embed href="text/sbasic/shared/03070600.xhp#mod"/></body></helpdocument>
PK
Nw�X���text/sbasic/shared/03120000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Strings</title><filename>/text/sbasic/shared/03120000.xhp</filename></topic></meta><body><section id="zeichen"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120000.xhp">Strings</link></paragraph><paragraph role="paragraph">The following functions and statements validate and return strings.</paragraph></section><paragraph role="paragraph">You can use strings to edit text within $[officename] Basic programs.</paragraph><embed href="text/sbasic/shared/03120100.xhp#ascii"/><embed href="text/sbasic/shared/03120200.xhp#zeichen"/><embed href="text/sbasic/shared/03120300.xhp#manipu"/><embed href="text/sbasic/shared/03120400.xhp#ermitteln"/></body></helpdocument>
PK
Nw�X� ��text/sbasic/shared/03104600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>EqualUnoObjects Function [Runtime]</title><filename>/text/sbasic/shared/03104600.xhp</filename></topic></meta><body><section id="equalunoobjects"><bookmark branch="index" id="bm_id3149205"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03104600.xhp">EqualUnoObjects Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns True if the two specified Basic Uno objects represent the same Uno object instance.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">EqualUnoObjects</item><item type="operator">(</item> <item type="identifier">oObj1</item><item type="operator">,</item> <item type="identifier">oObj2</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Bool</paragraph><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">// Copy of objects -&gt; same instance</paragraph><paragraph role="paragraph">oIntrospection = CreateUnoService( "com.sun.star.beans.Introspection" )</paragraph><paragraph role="paragraph">oIntro2 = oIntrospection</paragraph><paragraph role="paragraph">print EqualUnoObjects( oIntrospection, oIntro2 )</paragraph><paragraph role="paragraph">// Copy of structs as value -&gt; new instance</paragraph><paragraph role="paragraph">Dim Struct1 as new com.sun.star.beans.Property</paragraph><paragraph role="paragraph">Struct2 = Struct1</paragraph><paragraph role="paragraph">print EqualUnoObjects( Struct1, Struct2 )</paragraph></body></helpdocument>
PK
Nw�X��ootext/sbasic/shared/03120105.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CByte Function [Runtime]</title><filename>/text/sbasic/shared/03120105.xhp</filename></topic></meta><body><section id="cbyte"><bookmark branch="index" id="bm_id3156027"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120105.xhp">CByte Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a string or a numeric expression to the type Byte.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Cbyte</item><item type="operator">(</item> <item type="identifier">expression</item> <item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Byte</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> A string or a numeric expression.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/></body></helpdocument>
PK
Nw�XXQd��text/sbasic/shared/03060600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Xor-Operator [Runtime]</title><filename>/text/sbasic/shared/03060600.xhp</filename></topic></meta><body><section id="xor"><bookmark branch="index" id="bm_id3156024"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03060600.xhp">Xor-Operator [Runtime]</link></paragraph><paragraph role="paragraph">Performs a logical Exclusive-Or combination of two expressions.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="keyword">Xor</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numeric variable that contains the result of the combination.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any numeric expressions that you want to combine.</paragraph><paragraph role="paragraph">A logical Exclusive-Or conjunction of two Boolean expressions returns the value True only if both expressions are different from each other.</paragraph><paragraph role="paragraph">A bitwise Exclusive-Or conjunction returns a bit if the corresponding bit is set in only one of the two expressions.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleXor</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vA</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vB</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vC</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vD</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vOut</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">vA</item> <item type="operator">=</item> <item type="number">10</item><item type="parameter">:</item> <item type="identifier">vB</item> <item type="operator">=</item> <item type="number">8</item><item type="parameter">:</item> <item type="identifier">vC</item> <item type="operator">=</item> <item type="number">6</item><item type="parameter">:</item> <item type="identifier">vD</item> <item type="operator">=</item> <item type="identifier">Null</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">vA</item> <item type="operator">&gt;</item> <item type="identifier">vB</item> <item type="keyword">Xor</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vC</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vA</item> <item type="keyword">Xor</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vC</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">vA</item> <item type="operator">&gt;</item> <item type="identifier">vB</item> <item type="keyword">Xor</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vD</item> <item type="comment">' returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="operator">(</item><item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vD</item> <item type="keyword">Xor</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vA</item><item type="operator">)</item> <item type="comment">' returns 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">vB</item> <item type="keyword">Xor</item> <item type="identifier">vA</item> <item type="comment">' returns 2</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X:�YYtext/sbasic/shared/03132100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GetGuiType Function [Runtime]</title><filename>/text/sbasic/shared/03132100.xhp</filename></topic></meta><body><section id="getguitype"><bookmark branch="index" id="bm_id3147143"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03132100.xhp">GetGuiType Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a numerical value that specifies the graphical user interface.</paragraph></section><paragraph role="paragraph">This runtime function is only provided for downward compatibility to previous versions. The return value is not defined in client-server environments.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">GetGUIType</item><item type="operator">(</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Return values:</paragraph><paragraph role="paragraph">1: Windows</paragraph><paragraph role="paragraph">4: UNIX</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleEnvironment</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">GetGUIType</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�n@�::text/sbasic/shared/03080104.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Tan Function [Runtime]</title><filename>/text/sbasic/shared/03080104.xhp</filename></topic></meta><body><section id="tan"><bookmark branch="index" id="bm_id3148550"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080104.xhp">Tan Function [Runtime]</link></paragraph><paragraph role="paragraph">Determines the tangent of an angle. The angle is specified in radians.</paragraph></section><paragraph role="paragraph">Using the angle Alpha, the Tan Function calculates the ratio of the length of the side opposite the angle to the length of the side adjacent to the angle in a right-angled triangle.</paragraph><paragraph role="paragraph">Tan(Alpha) = side opposite the angle/side adjacent to angle</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Tan</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numeric expression that you want to calculate the tangent for (in radians).</paragraph><paragraph role="paragraph">To convert degrees to radians, multiply by Pi/180. To convert radians to degrees, multiply by 180/Pi.</paragraph><paragraph role="paragraph">degrees=(radiant*180)/Pi</paragraph><paragraph role="paragraph">radiant=(degrees*Pi)/180</paragraph><paragraph role="paragraph">Pi is approximately 3.141593.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' In this example, the following entry is possible for a right-angled triangle:</item></paragraph><paragraph role="bascode"><item type="comment">' The side opposite the angle and the angle (in degrees) to calculate the length of the side adjacent to the angle:</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleTangens</item></paragraph><paragraph role="bascode"><item type="comment">' Pi = 3.1415926 is a pre-defined variable</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">d1</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">dAlpha</item> <item type="keyword">As</item> <item type="keyword">Double</item></paragraph><paragraph role="bascode">    <item type="identifier">d1</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the length of the side opposite the angle: "</item><item type="operator">,</item><item type="string">"opposite"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">dAlpha</item> <item type="operator">=</item> <item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Enter the Alpha angle (in degrees): "</item><item type="operator">,</item><item type="string">"Alpha"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"the length of the side adjacent the angle is"</item><item type="operator">;</item> <item type="operator">(</item><item type="identifier">d1</item> <item type="unknown">/</item> <item type="identifier">tan</item> <item type="operator">(</item><item type="identifier">dAlpha</item> <item type="operator">*</item> <item type="identifier">Pi</item> <item type="unknown">/</item> <item type="number">180</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XbY��K
K
text/sbasic/shared/03070200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>"*" Operator [Runtime]</title><filename>/text/sbasic/shared/03070200.xhp</filename></topic></meta><body><section id="multiplikation"><bookmark branch="index" id="bm_id3147573"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03070200.xhp">"*" Operator [Runtime]</link></paragraph><paragraph role="paragraph">Multiplies two values.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="operator">*</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numeric expression that records the result of a multiplication.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any numeric expressions that you want to multiply.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleMultiplication1</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">5</item> <item type="operator">*</item> <item type="number">5</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleMultiplication2</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iValue1</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iValue2</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iValue1</item> <item type="operator">=</item> <item type="number">5</item></paragraph><paragraph role="bascode">    <item type="identifier">iValue2</item> <item type="operator">=</item> <item type="number">10</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">iValue1</item> <item type="operator">*</item> <item type="identifier">iValue2</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�jan77text/sbasic/shared/03120402.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Len Function [Runtime]</title><filename>/text/sbasic/shared/03120402.xhp</filename></topic></meta><body><section id="len"><bookmark branch="index" id="bm_id3154136"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120402.xhp">Len Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the number of characters in a string, or the number of bytes that are required to store a variable.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Len</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Long</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression or a variable of another type.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleLen</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">as</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="string">"Las Vegas"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Len</item><item type="operator">(</item><item type="identifier">sText</item><item type="operator">)</item> <item type="comment">REM Returns 9</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X{�U�<<text/sbasic/shared/03020201.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Get Statement [Runtime]</title><filename>/text/sbasic/shared/03020201.xhp</filename></topic></meta><body><section id="get"><bookmark branch="index" id="bm_id3154927"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020201.xhp">Get Statement [Runtime]</link></paragraph><paragraph role="paragraph">Reads a record from a relative file, or a sequence of bytes from a binary file, into a variable.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03020204.xhp"><item type="literal">PUT</item></link> Statement</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Get</item> <item type="identifier">[#]</item> <item type="identifier">FileNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">,</item> <item type="identifier">[Position]</item><item type="operator">,</item> <item type="identifier">Variable</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> Any integer expression that determines the file number.</paragraph><paragraph role="paragraph"><emph>Position:</emph> For files opened in Random mode, <emph>Position</emph> is the number of the record that you want to read.</paragraph><paragraph role="paragraph">For files opened in Binary mode, <emph>Position</emph> is the byte position in the file where the reading starts.</paragraph><paragraph role="paragraph">If <emph>Position</emph> is omitted, the current position or the current data record of the file is used.</paragraph><paragraph role="paragraph">Variable: Name of the variable to be read. With the exception of object variables, you can use any variable type.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRandomAccess</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">Variant</item> <item type="comment">' Must be a variant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Random</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item> <item type="identifier">Len</item><item type="operator">=</item><item type="number">32</item></paragraph><paragraph role="bascode">    <item type="identifier">Seek</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">1</item> <item type="comment">' Position at beginning</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the first line of text"</item> <item type="comment">' Fill line with text</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the second line of text"</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item> <item type="string">"This is the third line of text"</item></paragraph><paragraph role="bascode">    <item type="identifier">Seek</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Random</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item> <item type="identifier">Len</item><item type="operator">=</item><item type="number">32</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="operator">,</item><item type="string">"This is a new text"</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">1</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="keyword">Get</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">2</item><item type="operator">,</item><item type="identifier">sText</item></paragraph><paragraph role="bascode">    <item type="identifier">Put</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item><item type="number">20</item><item type="operator">,</item><item type="string">"This is the text in record 20"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">Lof</item><item type="operator">(</item><item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��Bqvvtext/sbasic/shared/03030105.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>WeekDay Function [Runtime]</title><filename>/text/sbasic/shared/03030105.xhp</filename></topic></meta><body><section id="weekday"><bookmark branch="index" id="bm_id3153127"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030105.xhp">WeekDay Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the number corresponding to the weekday represented by a serial date number that is generated by the DateSerial or the DateValue function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">WeekDay</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Integer expression that contains the serial date number that is used to calculate the day of the week (1-7).</paragraph><paragraph role="paragraph">The following example determines the day of the week using the WeekDay function when you enter a date.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWeekDay</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sDay</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="comment">' Return And display the day of the week</item></paragraph><paragraph role="bascode">    <item type="keyword">Select</item> <item type="keyword">Case</item> <item type="identifier">WeekDay</item><item type="operator">(</item> <item type="identifier">Now</item> <item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">1</item></paragraph><paragraph role="bascode">            <item type="identifier">sDay</item><item type="operator">=</item><item type="string">"Sunday"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">2</item></paragraph><paragraph role="bascode">            <item type="identifier">sDay</item><item type="operator">=</item><item type="string">"Monday"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">3</item></paragraph><paragraph role="bascode">            <item type="identifier">sDay</item><item type="operator">=</item><item type="string">"Tuesday"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">4</item></paragraph><paragraph role="bascode">            <item type="identifier">sDay</item><item type="operator">=</item><item type="string">"Wednesday"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">5</item></paragraph><paragraph role="bascode">            <item type="identifier">sDay</item><item type="operator">=</item><item type="string">"Thursday"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">6</item></paragraph><paragraph role="bascode">            <item type="identifier">sDay</item><item type="operator">=</item><item type="string">"Friday"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">7</item></paragraph><paragraph role="bascode">            <item type="identifier">sDay</item><item type="operator">=</item><item type="string">"Saturday"</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">Select</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">+</item> <item type="identifier">sDay</item><item type="operator">,</item><item type="number">64</item><item type="operator">,</item><item type="string">"Today Is"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��f��text/sbasic/shared/03030108.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDateFromIso Function [Runtime]</title><filename>/text/sbasic/shared/03030108.xhp</filename></topic></meta><body><section id="cdatefromiso"><bookmark branch="index" id="bm_id3153127"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030108.xhp">CDateFromIso Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the internal date number from a string that contains a date in ISO format.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDateFromIso</item><item type="operator">(</item><item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Internal date number</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>String:</emph> A string that contains a date in ISO format. The year may have two or four digits.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">dateval = CDateFromIso("20021231")</paragraph><paragraph role="paragraph">returns 12/31/2002 in the date format of your system</paragraph></body></helpdocument>
PK
Nw�XE�T��text/sbasic/shared/03131000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GetSolarVersion Function [Runtime]</title><filename>/text/sbasic/shared/03131000.xhp</filename></topic></meta><body><section id="getsolarversion"><bookmark branch="index" id="bm_id3157898"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03131000.xhp">GetSolarVersion Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the internal number of the current $[officename] version.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">s</item> <item type="operator">=</item> <item type="identifier">GetSolarVersion</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleGetSolarVersion</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sSep</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sSep</item> <item type="operator">=</item> <item type="identifier">GetSolarVersion</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sSep</item><item type="operator">,</item><item type="number">64</item><item type="operator">,</item><item type="string">"Version number of the solar technology"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X����2�2text/sbasic/shared/03020411.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>MkDir Statement [Runtime]</title><filename>/text/sbasic/shared/03020411.xhp</filename></topic></meta><body><section id="mkdir"><bookmark branch="index" id="bm_id3156421"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020411.xhp">MkDir Statement [Runtime]</link></paragraph><paragraph role="paragraph">Creates a new directory on a data medium.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">MkDir</item> <item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that specifies the name and path of the directory to be created. You can also use <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph">If the path is not determined, the directory is created in the current directory.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err76"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleFileIO</item></paragraph><paragraph role="bascode"><item type="comment">' Example for functions of the file organization</item></paragraph><paragraph role="bascode"><item type="keyword">Const</item> <item type="identifier">sFile1</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">=</item> <item type="string">"file://c|/autoexec.bat"</item></paragraph><paragraph role="bascode"><item type="keyword">Const</item> <item type="identifier">sDir1</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">=</item> <item type="string">"file://c|/Temp"</item></paragraph><paragraph role="bascode"><item type="keyword">Const</item> <item type="identifier">sSubDir1</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">=</item><item type="string">"Test"</item></paragraph><paragraph role="bascode"><item type="keyword">Const</item> <item type="identifier">sFile2</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">=</item> <item type="string">"Copied.tmp"</item></paragraph><paragraph role="bascode"><item type="keyword">Const</item> <item type="identifier">sFile3</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">=</item> <item type="string">"Renamed.tmp"</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sFile</item> <item type="operator">=</item> <item type="identifier">sDir1</item> <item type="operator">+</item> <item type="string">"/"</item> <item type="operator">+</item> <item type="identifier">sSubDir1</item></paragraph><paragraph role="bascode">    <item type="identifier">ChDir</item><item type="operator">(</item> <item type="identifier">sDir1</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">Dir</item><item type="operator">(</item><item type="identifier">sSubDir1</item><item type="operator">,</item><item type="number">16</item><item type="operator">)</item><item type="operator">=</item><item type="string">""</item> <item type="keyword">Then</item> <item type="comment">' Does the directory exist?</item></paragraph><paragraph role="bascode">        <item type="identifier">MkDir</item> <item type="identifier">sSubDir1</item></paragraph><paragraph role="bascode">        <item type="identifier">MsgBox</item> <item type="identifier">sFile</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Create directory"</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="identifier">sFile</item> <item type="operator">=</item> <item type="identifier">sFile</item> <item type="operator">+</item> <item type="string">"/"</item> <item type="operator">+</item> <item type="identifier">sFile2</item></paragraph><paragraph role="bascode">    <item type="identifier">FileCopy</item> <item type="identifier">sFile1</item> <item type="operator">,</item> <item type="identifier">sFile</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">fSysURL</item><item type="operator">(</item><item type="identifier">CurDir</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Current directory"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sFile</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">FileDateTime</item><item type="operator">(</item> <item type="identifier">sFile</item> <item type="operator">)</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Creation time"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sFile</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item> <item type="identifier">FileLen</item><item type="operator">(</item> <item type="identifier">sFile</item> <item type="operator">)</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"File length"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sFile</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item><item type="operator">&amp;</item> <item type="identifier">GetAttr</item><item type="operator">(</item> <item type="identifier">sFile</item> <item type="operator">)</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"File attributes"</item></paragraph><paragraph role="bascode">    <item type="keyword">Name</item> <item type="identifier">sFile</item> <item type="keyword">As</item> <item type="identifier">sDir1</item> <item type="operator">+</item> <item type="string">"/"</item> <item type="operator">+</item> <item type="identifier">sSubDir1</item> <item type="operator">+</item> <item type="string">"/"</item> <item type="operator">+</item> <item type="identifier">sFile3</item></paragraph><paragraph role="bascode">    <item type="comment">' Rename in the same directory</item></paragraph><paragraph role="bascode">    <item type="identifier">sFile</item> <item type="operator">=</item> <item type="identifier">sDir1</item> <item type="operator">+</item> <item type="string">"/"</item> <item type="operator">+</item> <item type="identifier">sSubDir1</item> <item type="operator">+</item> <item type="string">"/"</item> <item type="operator">+</item> <item type="identifier">sFile3</item></paragraph><paragraph role="bascode">    <item type="identifier">SetAttr</item><item type="operator">(</item> <item type="identifier">sFile</item><item type="operator">,</item> <item type="number">0</item> <item type="operator">)</item> <item type="comment">'Delete all attributes</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sFile</item> <item type="operator">&amp;</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">GetAttr</item><item type="operator">(</item> <item type="identifier">sFile</item> <item type="operator">)</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"New file attributes"</item></paragraph><paragraph role="bascode">    <item type="identifier">Kill</item> <item type="identifier">sFile</item></paragraph><paragraph role="bascode">    <item type="identifier">RmDir</item> <item type="identifier">sDir1</item> <item type="operator">+</item> <item type="string">"/"</item> <item type="operator">+</item> <item type="identifier">sSubDir1</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="comment">' Converts a system path in URL</item></paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">fSysURL</item><item type="operator">(</item> <item type="identifier">fSysFp</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iPos</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">iPos</item> <item type="operator">=</item> <item type="number">1</item></paragraph><paragraph role="bascode">    <item type="identifier">iPos</item> <item type="operator">=</item> <item type="identifier">Instr</item><item type="operator">(</item><item type="identifier">iPos</item><item type="operator">,</item><item type="identifier">fSysFp</item><item type="operator">,</item> <item type="identifier">getPathSeparator</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Do</item> <item type="keyword">While</item> <item type="identifier">iPos</item> <item type="operator">&gt;</item> <item type="number">0</item></paragraph><paragraph role="bascode">        <item type="identifier">Mid</item><item type="operator">(</item> <item type="identifier">fSysFp</item><item type="operator">,</item> <item type="identifier">iPos</item> <item type="operator">,</item> <item type="number">1</item><item type="operator">,</item><item type="string">"/"</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="identifier">iPos</item> <item type="operator">=</item> <item type="identifier">Instr</item><item type="operator">(</item><item type="identifier">iPos</item><item type="operator">+</item><item type="number">1</item><item type="operator">,</item><item type="identifier">fSysFp</item><item type="operator">,</item> <item type="identifier">getPathSeparator</item><item type="operator">(</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Loop</item></paragraph><paragraph role="bascode">    <item type="comment">' the colon with DOS</item></paragraph><paragraph role="bascode">    <item type="identifier">iPos</item> <item type="operator">=</item> <item type="identifier">Instr</item><item type="operator">(</item><item type="number">1</item><item type="operator">,</item><item type="identifier">fSysFp</item><item type="operator">,</item><item type="string">":"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">iPos</item> <item type="operator">&gt;</item> <item type="number">0</item> <item type="keyword">Then</item> <item type="identifier">Mid</item><item type="operator">(</item> <item type="identifier">fSysFp</item><item type="operator">,</item> <item type="identifier">iPos</item> <item type="operator">,</item> <item type="number">1</item><item type="operator">,</item><item type="string">"|"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">fSysURL</item> <item type="operator">=</item> <item type="string">"file://"</item> <item type="operator">&amp;</item> <item type="identifier">fSysFp</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode></body></helpdocument>
PK
Nw�XX�>"text/sbasic/shared/03102101.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>ReDim Statement [Runtime]</title><filename>/text/sbasic/shared/03102101.xhp</filename></topic></meta><body><section id="redim"><bookmark branch="index" id="bm_id3150398"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102101.xhp">ReDim Statement [Runtime]</link></paragraph><paragraph role="paragraph">Declares a variable or an array.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">[ReDim]</item><item type="keyword">Dim</item> <item type="identifier">VarName</item> <item type="identifier">[(start To end)]</item> <item type="identifier">[As VarType]</item><item type="identifier">[, VarName2 [(start To end)]</item> <item type="identifier">[As VarType]</item><item type="identifier">[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="paragraph">Optionally, you can add the <emph>Preserve</emph> keyword as a parameter to preserve the contents of the array that is redimensioned.</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>VarName:</emph> Any variable or array name.</paragraph><paragraph role="paragraph"><emph>Start, End:</emph> Numerical values or constants that define the number of elements (NumberElements=(end-start)+1) and the index range.</paragraph><paragraph role="paragraph">Start and End can be numeric expressions if ReDim is used at the procedure level.</paragraph><paragraph role="paragraph"><emph>VarType:</emph> Keyword that declares the data type of a variable.</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Variable type</paragraph><paragraph role="paragraph"><emph>Bool: </emph>Boolean variable (True, False)</paragraph><paragraph role="paragraph"><emph>Date:</emph> Date variable</paragraph><paragraph role="paragraph"><emph>Double:</emph> Double floating point variable (1.79769313486232x10E308 - 4.94065645841247x10E-324)</paragraph><paragraph role="paragraph"><emph>Integer:</emph> Integer variable (-32768 - 32767)</paragraph><paragraph role="paragraph"><emph>Long:</emph> Long integer variable (-2,147,483,648 - 2,147,483,647)</paragraph><paragraph role="paragraph"><emph>Object:</emph> Object variable (can only be subsequently defined by Set!)</paragraph><paragraph role="paragraph"><emph>[Single]:</emph> Single floating-point variable (3.402823x10E38 - 1.401298x10E-45). If no key word is specified, a variable is defined as Single, unless a statement from DefBool to DefVar is used.</paragraph><paragraph role="paragraph"><emph>String:</emph> String variable containing a maximum of 64,000 ASCII characters.</paragraph><paragraph role="paragraph"><emph>Variant: </emph>Variant variable type (can contain all types and is set by definition).</paragraph><paragraph role="paragraph">In $[officename] Basic, you do not need to declare variables explicitly. However, you need to declare an array before you can use them. You can declare a variable with the Dim statement, using commas to separate multiple declarations. To declare a variable type, enter a type-declaration character following the name or use a corresponding key word.</paragraph><paragraph role="paragraph">$[officename] Basic supports single or multi-dimensional arrays that are defined by a specified variable type. Arrays are suitable if the program contains lists or tables that you want to edit. The advantage of arrays is that it is possible to address individual elements according to indexes, which can be formulated as numeric expressions or variables.</paragraph><paragraph role="paragraph">There are two ways to set the range of indices for arrays declared with the Dim statement:</paragraph><paragraph role="paragraph">DIM text(20) As String REM 21 elements numbered from 0 to 20</paragraph><paragraph role="paragraph">DIM text(5 to 25) As String REM 21 elements numbered from 5 to 25</paragraph><paragraph role="paragraph">DIM text$(-15 to 5) As String REM 21 elements (0 inclusive),</paragraph><paragraph role="paragraph">rem numbered from -15 to 5</paragraph><paragraph role="paragraph">Variable fields, regardless of type, can be made dynamic if they are dimensioned by ReDim at the procedure level in subroutines or functions. Normally, you can only set the range of an array once and you cannot modify it. Within a procedure, you can declare an array using the ReDim statement with numeric expressions to define the range of the field sizes.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRedim</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item><item type="operator">(</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">,</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">ReDim</item> <item type="identifier">iVar</item><item type="operator">(</item><item type="number">5</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">5</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item><item type="operator">(</item><item type="identifier">iCount</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">ReDim</item> <item type="identifier">iVar</item><item type="operator">(</item><item type="number">10</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">10</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item><item type="operator">(</item><item type="identifier">iCount</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�Ҷ��text/sbasic/shared/03060500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Or-Operator [Runtime]</title><filename>/text/sbasic/shared/03060500.xhp</filename></topic></meta><body><section id="or"><bookmark branch="index" id="bm_id3150986"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03060500.xhp">Or Operator [Runtime]</link></paragraph><paragraph role="paragraph">Performs a logical OR disjunction on two expressions.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="keyword">Or</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numeric variable that contains the result of the disjunction.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any numeric expressions that you want to compare.</paragraph><paragraph role="paragraph">A logical OR disjunction of two Boolean expressions returns the value True if at least one comparison expression is True.</paragraph><paragraph role="paragraph">A bit-wise comparison sets a bit in the result if the corresponding bit is set in at least one of the two expressions.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleOr</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vA</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vB</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vC</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vD</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vOut</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">vA</item> <item type="operator">=</item> <item type="number">10</item><item type="parameter">:</item> <item type="identifier">vB</item> <item type="operator">=</item> <item type="number">8</item><item type="parameter">:</item> <item type="identifier">vC</item> <item type="operator">=</item> <item type="number">6</item><item type="parameter">:</item> <item type="identifier">vD</item> <item type="operator">=</item> <item type="identifier">Null</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">vA</item> <item type="operator">&gt;</item> <item type="identifier">vB</item> <item type="keyword">Or</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vC</item> <item type="comment">' -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vA</item> <item type="keyword">Or</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vC</item> <item type="comment">' -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">vA</item> <item type="operator">&gt;</item> <item type="identifier">vB</item> <item type="keyword">Or</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vD</item> <item type="comment">' -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="operator">(</item><item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vD</item> <item type="keyword">Or</item> <item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vA</item><item type="operator">)</item> <item type="comment">' 0</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="identifier">vB</item> <item type="keyword">Or</item> <item type="identifier">vA</item> <item type="comment">' 10</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X`�M"ootext/sbasic/shared/03030101.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DateSerial Function [Runtime]</title><filename>/text/sbasic/shared/03030101.xhp</filename></topic></meta><body><section id="dateserial"><bookmark branch="index" id="bm_id3157896"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030101.xhp">DateSerial Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a <emph>Date</emph> value for a specified year, month, or day.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">DateSerial</item> <item type="operator">(</item><item type="identifier">year</item><item type="operator">,</item> <item type="identifier">month</item><item type="operator">,</item> <item type="identifier">day</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Year:</emph> Integer expression that indicates a year. All values between 0 and 99 are interpreted as the years 1900-1999. For years that fall outside this range, you must enter all four digits.</paragraph><paragraph role="paragraph"><emph>Month:</emph> Integer expression that indicates the month of the specified year. The accepted range is from 1-12.</paragraph><paragraph role="paragraph"><emph>Day:</emph> Integer expression that indicates the day of the specified month. The accepted range is from 1-31. No error is returned when you enter a non-existing day for a month shorter than 31 days.</paragraph><paragraph role="paragraph">The <emph>DateSerial function</emph> returns the number of days between December 30,1899 and the given date. You can use this function to calculate the difference between two dates.</paragraph><paragraph role="paragraph">The <emph>DateSerial function</emph> returns the data type Variant with VarType 7 (Date). Internally, this value is stored as a Double value, so that when the given date is 1.1.1900, the returned value is 2. Negative values correspond to dates before December 30, 1899 (not inclusive).</paragraph><paragraph role="paragraph">If a date is defined that lies outside of the accepted range, $[officename] Basic returns an error message.</paragraph><paragraph role="paragraph">Whereas you define the <emph>DateValue function</emph> as a string that contains the date, the <emph>DateSerial function</emph> evaluates each of the parameters (year, month, day) as separate numeric expressions.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDateSerial</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lDate</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sDate</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">lDate</item> <item type="operator">=</item> <item type="identifier">DateSerial</item><item type="operator">(</item><item type="number">1964</item><item type="operator">,</item> <item type="number">4</item><item type="operator">,</item> <item type="number">9</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sDate</item> <item type="operator">=</item> <item type="identifier">DateSerial</item><item type="operator">(</item><item type="number">1964</item><item type="operator">,</item> <item type="number">4</item><item type="operator">,</item> <item type="number">9</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">lDate</item> <item type="comment">' returns 23476</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sDate</item> <item type="comment">' returns 04/09/1964</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XT�
*��text/sbasic/shared/03050000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Error-Handling Functions</title><filename>/text/sbasic/shared/03050000.xhp</filename></topic></meta><body><section id="fehlerbehan"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03050000.xhp">Error-Handling Functions</link></paragraph><paragraph role="paragraph">Use the following statements and functions to define the way $[officename] Basic reacts to run-time errors.</paragraph></section><paragraph role="paragraph">$[officename] Basic offers several methods to prevent the termination of a program when a run-time error occurs.</paragraph><embed href="text/sbasic/shared/03050100.xhp#erl"/><embed href="text/sbasic/shared/03050200.xhp#err"/><embed href="text/sbasic/shared/03050300.xhp#errorf"/><embed href="text/sbasic/shared/03050500.xhp#onerrorgotoresume"/></body></helpdocument>
PK
Mw�X0Ӽ��$�$text/sbasic/shared/01030400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Organizing Libraries and Modules</title><filename>/text/sbasic/shared/01030400.xhp</filename></topic></meta><body><section id="anlegenverwalten"><bookmark branch="index" id="bm_id3148797"/><paragraph role="heading" level="1"><variable id="01030400"><link href="text/sbasic/shared/01030400.xhp">Organizing Libraries and Modules</link></variable></paragraph></section><paragraph role="heading" level="2">Organizing Libraries</paragraph><paragraph role="heading" level="3">Creating a New Library</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Macros - %PRODUCTNAME Basic</emph> and click <emph>Organizer</emph> or click the <emph>Select Module</emph> icon in the Basic IDE to open the <emph>Macro Organizer</emph> dialog.</paragraph></listitem><listitem><paragraph role="listitem">Click the <emph>Libraries</emph> tab.</paragraph></listitem><listitem><paragraph role="listitem">Select to where you want to attach the library in the <emph>Location</emph> list. If you select %PRODUCTNAME Macros &amp; Dialogs, the library will belong to the $[officename] application and will be available for all documents. If you select a document the library will be attached to this document and only available from there.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>New</emph> and insert a name to create a new library.</paragraph></listitem></list><paragraph role="heading" level="3">Import a Library</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Macros - %PRODUCTNAME Basic</emph> and click <emph>Organizer</emph> or click the <emph>Select Module</emph> icon in the Basic IDE to open the <emph>Macro Organizer</emph> dialog.</paragraph></listitem><listitem><paragraph role="listitem">Click the <emph>Libraries</emph> tab.</paragraph></listitem><listitem><paragraph role="listitem">Select to where you want to import the library in the <emph>Location</emph> list. If you select %PRODUCTNAME Macros &amp; Dialogs, the library will belong to the $[officename] application and will be available for all documents. If you select a document the library will be imported to this document and only available from there.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>Import...</emph> and select an external library to import.</paragraph></listitem><listitem><paragraph role="listitem">Select all libraries to be imported in the <emph>Import Libraries</emph> dialog. The dialog displays all libraries that are contained in the selected file.</paragraph></listitem><listitem><paragraph role="listitem">If you want to insert the library as a reference only check the <emph>Insert as reference (read-only)</emph> box. Read-only libraries are fully functional but cannot be modified in the Basic IDE.</paragraph></listitem><listitem><paragraph role="listitem">Check the <emph>Replace existing libraries</emph> box if you want existing libraries of the same name to be overwritten.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>OK</emph> to import the library.</paragraph></listitem></list><paragraph role="heading" level="3">Export a Library</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Macros - %PRODUCTNAME Basic</emph> and click <emph>Organizer</emph> or click the <emph>Select Module</emph> icon in the Basic IDE to open the <emph>Macro Organizer</emph> dialog.</paragraph></listitem><listitem><paragraph role="listitem">Click the <emph>Libraries</emph> tab.</paragraph></listitem><listitem><paragraph role="listitem">In the <emph>Location</emph> list you specify where your library is stored. Select the library that you want to export. Note that you cannot export the <emph>Standard</emph> library.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>Export...</emph></paragraph></listitem><listitem><paragraph role="listitem">Choose whether you want to export the library as an extension or as a basic library.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>OK</emph>.</paragraph></listitem><listitem><paragraph role="listitem">Select where you want your library exported.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>Save</emph> to export the library.</paragraph></listitem></list><paragraph role="heading" level="3">Deleting a Library</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Macros - %PRODUCTNAME Basic</emph> and click <emph>Organizer</emph> or click the <emph>Select Module</emph> icon in the Basic IDE to open the <emph>Macro Organizer</emph> dialog.</paragraph></listitem><listitem><paragraph role="listitem">Click the <emph>Libraries</emph> tab.</paragraph></listitem><listitem><paragraph role="listitem">Select the library to be deleted from the list.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>Delete</emph>.</paragraph></listitem></list><list type="unordered"><listitem><paragraph role="listitem">Deleting a library permanently deletes all existing modules and corresponding procedures and functions.</paragraph></listitem><listitem><paragraph role="listitem">You cannot delete the default library named "Standard".</paragraph></listitem><listitem><paragraph role="listitem">If you delete a library that was inserted as reference only the reference is deleted but not the library itself.</paragraph></listitem></list><paragraph role="heading" level="2">Organizing Modules and Dialogs</paragraph><paragraph role="heading" level="3">Creating a New Module or Dialog</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Macros - %PRODUCTNAME Basic</emph> and click <emph>Organizer</emph> or click the <emph>Select Module</emph> icon in the Basic IDE to open the <emph>Macro Organizer</emph> dialog.</paragraph></listitem><listitem><paragraph role="listitem">Click the <emph>Modules</emph> tab or the <emph>Dialogs</emph> tab.</paragraph></listitem><listitem><paragraph role="listitem">Select the library where the module will be inserted and click <emph>New</emph>.</paragraph></listitem><listitem><paragraph role="listitem">Enter a name for the module or the dialog and click <emph>OK</emph>.</paragraph></listitem></list><paragraph role="heading" level="3">Renaming a Module or Dialog</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Macros - %PRODUCTNAME Basic</emph> and click <emph>Organizer</emph> or click the <emph>Select Module</emph> icon in the Basic IDE to open the <emph>Macro Organizer</emph> dialog.</paragraph></listitem><listitem><paragraph role="listitem">Click the module to be renamed twice, with a pause between the clicks. Enter the new name.</paragraph><paragraph role="listitem">In the Basic IDE, right-click the name of the module or dialog in the tabs at the bottom of the screen, choose <emph>Rename</emph> and type in the new name.</paragraph></listitem><listitem><paragraph role="listitem">Press Enter to confirm your changes.</paragraph></listitem></list><paragraph role="heading" level="3">Deleting a Module or Dialog</paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Macros - %PRODUCTNAME Basic</emph> and click <emph>Organizer</emph> or click the <emph>Select Module</emph> icon in the Basic IDE to open the <emph>Macro Organizer</emph> dialog.</paragraph></listitem><listitem><paragraph role="listitem">Click the <emph>Modules</emph> tab or the <emph>Dialogs</emph> tab.</paragraph></listitem><listitem><paragraph role="listitem">Select the module or dialog to be deleted from the list. Double-click an entry to reveal sub-entries, if required.</paragraph></listitem><listitem><paragraph role="listitem">Click <emph>Delete</emph>.</paragraph></listitem></list><paragraph role="warning">Deleting a module permanently deletes all existing procedures and functions in that module.</paragraph><paragraph role="heading" level="2">Organizing Projects among Documents or Templates</paragraph><paragraph role="heading" level="3">Moving or copying modules between documents, templates and the application.</paragraph><list type="ordered"><listitem><paragraph role="listitem">Open all documents or templates among which you want to move or copy the modules or dialogs.</paragraph></listitem><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Macros - %PRODUCTNAME Basic</emph> and click <emph>Organizer</emph> or click the <emph>Select Module</emph> icon in the Basic IDE to open the <emph>Macro Organizer</emph> dialog.</paragraph></listitem><listitem><paragraph role="listitem">To move a module or dialog to another document, click the corresponding object in the list and drag it to the desired position. A horizontal line indicates the target position of the current object while dragging. Hold the <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline> key while dragging to copy the object instead of moving it.</paragraph></listitem></list></body></helpdocument>
PK
Nw�X�iK���text/sbasic/shared/03120310.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>UCase Function [Runtime]</title><filename>/text/sbasic/shared/03120310.xhp</filename></topic></meta><body><section id="ucase"><bookmark branch="index" id="bm_id3153527"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120310.xhp">UCase Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts lowercase characters in a string to uppercase.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03120302.xhp">LCase Function</link></paragraph><paragraph role="paragraph"><emph>Syntax</emph>:</paragraph><paragraph role="paragraph">UCase (Text As String)</paragraph><paragraph role="paragraph"><emph>Return value</emph>:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that you want to convert.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleLUCase</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="string">"Las Vegas"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">LCase</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">)</item> <item type="comment">' returns "las vegas"</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">UCase</item><item type="operator">(</item><item type="identifier">sVar</item><item type="operator">)</item> <item type="comment">' returns "LAS VEGAS"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�t�@�
�
text/sbasic/shared/03101130.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefSng Statement [Runtime]</title><filename>/text/sbasic/shared/03101130.xhp</filename></topic></meta><body><section id="defsng"><bookmark branch="index" id="bm_id2445142"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101130.xhp">DefSng Statement [Runtime]</link></paragraph><paragraph role="paragraph">If no type-declaration character or keyword is specified, the DefSng statement sets the default variable type, according to a letter range.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Default variable type</paragraph><paragraph role="paragraph"><emph>DefSng:</emph> Single</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definitions for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">DefSng</item> <item type="identifier">s</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefSng</item></paragraph><paragraph role="bascode">    <item type="identifier">sSng</item><item type="operator">=</item><item type="keyword">Single</item> <item type="comment">' sSng is an implicit single variable</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�	n�NNtext/sbasic/shared/03030100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Converting Date Values</title><filename>/text/sbasic/shared/03030100.xhp</filename></topic></meta><body><section id="datumswerte"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030100.xhp">Converting Date Values</link></paragraph><paragraph role="paragraph">The following functions convert date values to calculable numbers and back.</paragraph></section><embed href="text/sbasic/shared/03030101.xhp#dateserial"/><embed href="text/sbasic/shared/03030102.xhp#datevalue"/><embed href="text/sbasic/shared/03030103.xhp#day"/><embed href="text/sbasic/shared/03030104.xhp#month"/><embed href="text/sbasic/shared/03030105.xhp#weekday"/><embed href="text/sbasic/shared/03030106.xhp#year"/><embed href="text/sbasic/shared/03030107.xhp#cdatetoiso"/><embed href="text/sbasic/shared/03030108.xhp#cdatefromiso"/><embed href="text/sbasic/shared/03030111.xhp#cdatetounodate"/><embed href="text/sbasic/shared/03030112.xhp#cdatefromunodate"/><embed href="text/sbasic/shared/03030115.xhp#cdatetounodatetime"/><embed href="text/sbasic/shared/03030116.xhp#cdatefromunodatetime"/><embed href="text/sbasic/shared/03030110.xhp#dateadd"/><embed href="text/sbasic/shared/03030120.xhp#datediff"/><embed href="text/sbasic/shared/03030130.xhp#datepart"/></body></helpdocument>
PK
Nw�Xd�&�=(=(text/sbasic/shared/03090202.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>For...Next Statement [Runtime]</title><filename>/text/sbasic/shared/03090202.xhp</filename></topic></meta><body><section id="fornext"><bookmark branch="index" id="bm_id3149205"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090202.xhp">For...Next Statement [Runtime]</link></paragraph><paragraph role="paragraph">Repeats the statements between the For...Next block a specified number of times.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">For</item> <item type="identifier">counter</item><item type="operator">=</item><item type="identifier">start</item> <item type="keyword">To</item> <item type="keyword">end</item> <item type="identifier">[Step step]</item></paragraph><paragraph role="bascode"><item type="identifier">statement</item> <item type="identifier">block</item></paragraph><paragraph role="bascode"><item type="identifier">[Exit For]</item></paragraph><paragraph role="bascode"><item type="identifier">statement</item> <item type="identifier">block</item></paragraph><paragraph role="bascode"><item type="keyword">Next</item> <item type="identifier">[counter]</item></paragraph></bascode><paragraph role="heading" level="2">Variables:</paragraph><paragraph role="paragraph"><emph>Counter:</emph> Loop counter initially assigned the value to the right of the equal sign (start). Only numeric variables are valid. The loop counter increases or decreases according to the variable Step until End is passed.</paragraph><paragraph role="paragraph"><emph>Start:</emph> Numeric variable that defines the initial value at the beginning of the loop.</paragraph><paragraph role="paragraph"><emph>End:</emph> Numeric variable that defines the final value at the end of the loop.</paragraph><paragraph role="paragraph"><emph>Step:</emph> Sets the value by which to increase or decrease the loop counter. If Step is not specified, the loop counter is incremented by 1. In this case, End must be greater than Start. If you want to decrease Counter, End must be less than Start, and Step must be assigned a negative value.</paragraph><paragraph role="paragraph">The <emph>For...Next</emph> loop repeats all of the statements in the loop for the number of times that is specified by the parameters.</paragraph><paragraph role="paragraph">As the counter variable is decreased, $[officename] Basic checks if the end value has been reached. As soon as the counter passes the end value, the loop automatically ends.</paragraph><paragraph role="paragraph">It is possible to nest <emph>For...Next</emph> statements. If you do not specify a variable following the <emph>Next</emph> statement, <emph>Next</emph> automatically refers to the most recent <emph>For</emph> statement.</paragraph><paragraph role="paragraph">If you specify an increment of 0, the statements between <emph>For</emph> and <emph>Next</emph> are repeated continuously.</paragraph><paragraph role="paragraph">When counting down the counter variable, $[officename] Basic checks for overflow or underflow. The loop ends when Counter exceeds End (positive Step value) or is less than End (negative Step value).</paragraph><paragraph role="paragraph">Use the <emph>Exit For</emph> statement to exit the loop unconditionally. This statement must be within a <emph>For...Next</emph> loop. Use the <emph>If...Then</emph> statement to test the exit condition as follows:</paragraph><paragraph role="paragraph">For...</paragraph><paragraph role="paragraph">statements</paragraph><paragraph role="paragraph">If condition = True Then Exit For</paragraph><paragraph role="paragraph">statements</paragraph><paragraph role="paragraph">Next</paragraph><paragraph role="paragraph">Note: In nested <emph>For...Next</emph> loops, if you exit a loop unconditionally with <emph>Exit For</emph>, only one loop is exited.</paragraph><paragraph role="heading" level="2">Example</paragraph><paragraph role="paragraph">The following example uses two nested loops to sort a string array with 10 elements ( sEntry() ), that are first filled with various contents:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSort</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">9</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount2</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sTemp</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">0</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Jerry"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">1</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Patty"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">2</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Kurt"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">3</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Thomas"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">4</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Michael"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">5</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"David"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">6</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Cathy"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">7</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Susie"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">8</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Edward"</item></paragraph><paragraph role="bascode">    <item type="identifier">sEntry</item><item type="operator">(</item><item type="number">9</item><item type="operator">)</item> <item type="operator">=</item> <item type="string">"Christine"</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">9</item></paragraph><paragraph role="bascode">        <item type="keyword">For</item> <item type="identifier">iCount2</item> <item type="operator">=</item> <item type="identifier">iCount</item> <item type="operator">+</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">9</item></paragraph><paragraph role="bascode">            <item type="keyword">If</item> <item type="identifier">sEntry</item><item type="operator">(</item><item type="identifier">iCount</item><item type="operator">)</item> <item type="operator">&gt;</item> <item type="identifier">sEntry</item><item type="operator">(</item><item type="identifier">iCount2</item><item type="operator">)</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">                <item type="identifier">sTemp</item> <item type="operator">=</item> <item type="identifier">sEntry</item><item type="operator">(</item><item type="identifier">iCount</item><item type="operator">)</item></paragraph><paragraph role="bascode">                <item type="identifier">sEntry</item><item type="operator">(</item><item type="identifier">iCount</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">sEntry</item><item type="operator">(</item><item type="identifier">iCount2</item><item type="operator">)</item></paragraph><paragraph role="bascode">                <item type="identifier">sEntry</item><item type="operator">(</item><item type="identifier">iCount2</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">sTemp</item></paragraph><paragraph role="bascode">            <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">        <item type="keyword">Next</item> <item type="identifier">iCount2</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">9</item></paragraph><paragraph role="bascode">        <item type="keyword">Print</item> <item type="identifier">sEntry</item><item type="operator">(</item><item type="identifier">iCount</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�`��text/sbasic/shared/03120312.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>ConvertToURL Function [Runtime]</title><filename>/text/sbasic/shared/03120312.xhp</filename></topic></meta><body><section id="converttourl"><bookmark branch="index" id="bm_id3152801"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120312.xhp">ConvertToURL Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a system file name to a file URL.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">ConvertToURL</item><item type="operator">(</item><item type="identifier">filename</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Filename:</emph> A file name as string.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">systemFile$ = "c:\folder\mytext.txt"</paragraph><paragraph role="paragraph">url$ = ConvertToURL( systemFile$ )</paragraph><paragraph role="paragraph">print url$</paragraph><paragraph role="paragraph">systemFileAgain$ = ConvertFromURL( url$ )</paragraph><paragraph role="paragraph">print systemFileAgain$</paragraph></body></helpdocument>
PK
Nw�X�_ˏ�text/sbasic/shared/03104700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Erase Function [Runtime]</title><filename>/text/sbasic/shared/03104700.xhp</filename></topic></meta><body><section id="erase"><bookmark branch="index" id="bm_id624713"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03104700.xhp">Erase Function [Runtime]</link></paragraph><paragraph role="paragraph">Erases the contents of array elements of fixed size arrays, and releases the memory used by arrays of variable size.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Erase</item> <item type="identifier">Arraylist</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Arraylist</emph> - The list of arrays to be erased.</paragraph></body></helpdocument>
PK
Nw�X�����text/sbasic/shared/03131600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CreateUnoService Function [Runtime]</title><filename>/text/sbasic/shared/03131600.xhp</filename></topic></meta><body><section id="createunoservice"><bookmark branch="index" id="bm_id3150682"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03131600.xhp">CreateUnoService Function [Runtime]</link></paragraph><paragraph role="paragraph">Instantiates a Uno service with the ProcessServiceManager.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">oService</item> <item type="operator">=</item> <item type="identifier">CreateUnoService</item><item type="operator">(</item> <item type="identifier">Uno</item> <item type="identifier">service</item> <item type="keyword">name</item> <item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">For a list of available services, go to: http://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star.html</paragraph><paragraph role="heading" level="2">Examples:</paragraph><paragraph role="paragraph">oIntrospection = CreateUnoService( "com.sun.star.beans.Introspection" )</paragraph><bookmark branch="index" id="bm_id8334604"/><paragraph role="paragraph">The following code uses a service to open a file open dialog:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Main</item></paragraph><paragraph role="bascode">    <item type="identifier">fName</item> <item type="operator">=</item> <item type="identifier">FileOpenDialog</item> <item type="operator">(</item><item type="string">"Please select a file"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"file chosen: "</item><item type="operator">+</item><item type="identifier">fName</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">FileOpenDialog</item><item type="operator">(</item><item type="identifier">title</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">filepicker</item> <item type="operator">=</item> <item type="identifier">createUnoService</item><item type="operator">(</item><item type="string">"com.sun.star.ui.dialogs.FilePicker"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">filepicker</item><item type="operator">.</item><item type="identifier">Title</item> <item type="operator">=</item> <item type="identifier">title</item></paragraph><paragraph role="bascode">    <item type="identifier">filepicker</item><item type="operator">.</item><item type="identifier">execute</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">files</item> <item type="operator">=</item> <item type="identifier">filepicker</item><item type="operator">.</item><item type="identifier">getFiles</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">FileOpenDialog</item><item type="operator">=</item><item type="identifier">files</item><item type="operator">(</item><item type="number">0</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�u�""text/sbasic/shared/03104200.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Array Function [Runtime]</title><filename>/text/sbasic/shared/03104200.xhp</filename></topic></meta><body><section id="array"><bookmark branch="index" id="bm_id3150499"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03104200.xhp">Array Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the type Variant with a data field.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Array</item> <item type="operator">(</item> <item type="identifier">Argument</item> <item type="identifier">list</item><item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">See also <link href="text/sbasic/shared/03104300.xhp">DimArray</link></paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Argument list:</emph> A list of any number of arguments that are separated by commas.</paragraph><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">Dim A As Variant</paragraph><paragraph role="paragraph">A = Array("Fred","Tom","Bill")</paragraph><paragraph role="paragraph">Msgbox A(2)</paragraph></body></helpdocument>
PK
Nw�X9��r��text/sbasic/shared/03020405.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FileAttr Function [Runtime]</title><filename>/text/sbasic/shared/03020405.xhp</filename></topic></meta><body><section id="fileattr"><bookmark branch="index" id="bm_id3153380"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020405.xhp">FileAttr Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the access mode or the file access number of a file that was opened with the Open statement. The file access number is dependent on the operating system (OSH = Operating System Handle).</paragraph></section><paragraph role="note">If you use a 32-Bit operating system, you cannot use the FileAttr-Function to determine the file access number.</paragraph><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03020103.xhp">Open</link></paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FileAttr</item> <item type="operator">(</item><item type="identifier">FileNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">,</item> <item type="keyword">Attribute</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>FileNumber:</emph> The number of the file that was opened with the Open statement.</paragraph><paragraph role="paragraph"><emph>Attribute:</emph> Integer expression that indicates the type of file information that you want to return. The following values are possible:</paragraph><paragraph role="paragraph">1: The FileAttr-Function indicates the access mode of the file.</paragraph><paragraph role="paragraph">2: The FileAttr-Function returns the file access number of the operating system.</paragraph><paragraph role="paragraph">If you specify a parameter attribute with a value of 1, the following return values apply:</paragraph><paragraph role="paragraph">1 - INPUT (file open for input)</paragraph><paragraph role="paragraph">2 - OUTPUT (file open for output)</paragraph><paragraph role="paragraph">4 - RANDOM (file open for random access)</paragraph><paragraph role="paragraph">8 - APPEND (file open for appending)</paragraph><paragraph role="paragraph">32 - BINARY (file open in binary mode).</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err52"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleFileAttr</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iNumber</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sLine</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">aFile</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">aFile</item> <item type="operator">=</item> <item type="string">"c:\data.txt"</item></paragraph><paragraph role="bascode">    <item type="identifier">iNumber</item> <item type="operator">=</item> <item type="identifier">Freefile</item></paragraph><paragraph role="bascode">    <item type="keyword">Open</item> <item type="identifier">aFile</item> <item type="keyword">For</item> <item type="keyword">Output</item> <item type="keyword">As</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="string">"This is a line of text"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">FileAttr</item><item type="operator">(</item><item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="number">1</item> <item type="operator">)</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Access mode"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">FileAttr</item><item type="operator">(</item><item type="unknown">#</item><item type="identifier">iNumber</item><item type="operator">,</item> <item type="number">2</item> <item type="operator">)</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"File attribute"</item></paragraph><paragraph role="bascode">    <item type="keyword">Close</item> <item type="unknown">#</item><item type="identifier">iNumber</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xb6��text/sbasic/shared/03020406.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>FileCopy Statement [Runtime]</title><filename>/text/sbasic/shared/03020406.xhp</filename></topic></meta><body><section id="filecopy"><bookmark branch="index" id="bm_id3154840"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020406.xhp">FileCopy Statement [Runtime]</link></paragraph><paragraph role="paragraph">Copies a file.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">FileCopy</item> <item type="identifier">TextFrom</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">TextTo</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>TextFrom:</emph> Any string expression that specifies the name of the file that you want to copy. The expression can contain optional path and drive information. If you want, you can enter a path in <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph"><emph>TextTo:</emph> Any string expression that specifies where you want to copy the source file to. The expression can contain the destination drive, the path, and file name, or the path in URL notation.</paragraph><paragraph role="note">You can only use the FileCopy statement to copy files that are not opened.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err76"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleFileCopy</item></paragraph><paragraph role="bascode">    <item type="identifier">FileCopy</item> <item type="string">"c:\autoexec.bat"</item><item type="operator">,</item> <item type="string">"c:\Temp\Autoexec.sav"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XQ�
�o
o
text/sbasic/shared/03101500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefInt Statement [Runtime]</title><filename>/text/sbasic/shared/03101500.xhp</filename></topic></meta><body><section id="defint"><bookmark branch="index" id="bm_id3149811"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101500.xhp">DefInt Statement [Runtime]</link></paragraph><paragraph role="paragraph">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Default variable type</paragraph><paragraph role="paragraph"><emph>DefInt:</emph> Integer</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definitions for variable types</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefInt</item></paragraph><paragraph role="bascode">    <item type="identifier">iCount</item><item type="operator">=</item><item type="number">200</item> <item type="comment">' iCount is an implicit integer variable</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�1�(B	B	text/sbasic/shared/03100300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDate Function [Runtime]</title><filename>/text/sbasic/shared/03100300.xhp</filename></topic></meta><body><section id="cdate"><bookmark branch="index" id="bm_id3150772"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100300.xhp">CDate Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts any string or numeric expression to a date value.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDate</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any string or numeric expression that you want to convert.</paragraph><paragraph role="paragraph">When you convert a string expression, the date and time must be entered in the format MM.DD.YYYY HH.MM.SS, as defined by the <emph>DateValue</emph> and <emph>TimeValue</emph> function conventions. In numeric expressions, values to the left of the decimal represent the date, beginning from December 31, 1899. Values to the right of the decimal represent the time.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCDate</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">cDate</item><item type="operator">(</item><item type="number">1000.25</item><item type="operator">)</item> <item type="comment">' 09.26.1902 06:00:00</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">cDate</item><item type="operator">(</item><item type="number">1001.26</item><item type="operator">)</item> <item type="comment">' 09.27.1902 06:14:24</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X-���text/sbasic/shared/03000000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Run-Time Functions</title><filename>/text/sbasic/shared/03000000.xhp</filename></topic></meta><body><section id="runtime"><paragraph role="heading" level="1"><variable id="doc_title"><link href="text/sbasic/shared/03000000.xhp">Run-Time Functions</link></variable></paragraph><paragraph role="paragraph">This section describes the Runtime Functions of <item type="productname">%PRODUCTNAME</item> Basic.</paragraph></section><embed href="text/sbasic/shared/03010000.xhp#bildschirmeinaus"/><embed href="text/sbasic/shared/03020000.xhp#dateieinaus"/><embed href="text/sbasic/shared/03030000.xhp#datumzeit"/><embed href="text/sbasic/shared/03050000.xhp#fehlerbehan"/><embed href="text/sbasic/shared/03060000.xhp#logi"/><embed href="text/sbasic/shared/03070000.xhp#mathe"/><embed href="text/sbasic/shared/03080000.xhp#nummer"/><embed href="text/sbasic/shared/03090000.xhp#programmablauf"/><embed href="text/sbasic/shared/03100000.xhp#variablen"/><embed href="text/sbasic/shared/03110000.xhp#vergleich"/><embed href="text/sbasic/shared/03120000.xhp#zeichen"/><embed href="text/sbasic/shared/03130000.xhp#sonstige"/></body></helpdocument>
PK
Nw�X'[�7

text/sbasic/shared/03130600.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Wait Statement [Runtime]</title><filename>/text/sbasic/shared/03130600.xhp</filename></topic></meta><body><section id="wait"><bookmark branch="index" id="bm_id3154136"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03130600.xhp">Wait Statement [Runtime]</link></paragraph><paragraph role="paragraph">Interrupts the program execution for the amount of time that you specify in milliseconds.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Wait</item> <item type="identifier">millisec</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>millisec:</emph> Numeric expression that contains the amount of time (in milliseconds) to wait before the program is executed.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWait</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">lTick</item> <item type="keyword">As</item> <item type="keyword">Long</item></paragraph><paragraph role="bascode">    <item type="identifier">lTick</item> <item type="operator">=</item> <item type="identifier">GetSystemTicks</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">Wait</item> <item type="number">2000</item></paragraph><paragraph role="bascode">    <item type="identifier">lTick</item> <item type="operator">=</item> <item type="operator">(</item><item type="identifier">GetSystemTicks</item><item type="operator">(</item><item type="operator">)</item> <item type="unknown">-</item> <item type="identifier">lTick</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="string">""</item> <item type="operator">&amp;</item> <item type="identifier">lTick</item> <item type="operator">&amp;</item> <item type="string">" Ticks"</item> <item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"The pause lasted"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��IF@@text/sbasic/shared/03130100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Beep Statement [Runtime]</title><filename>/text/sbasic/shared/03130100.xhp</filename></topic></meta><body><section id="beep"><bookmark branch="index" id="bm_id3143284"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03130100.xhp">Beep Statement [Runtime]</link></paragraph><paragraph role="paragraph">Plays a tone through the computer's speaker. The tone is system-dependent and you cannot modify its volume or pitch.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Beep</item></paragraph></bascode><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleBeep</item></paragraph><paragraph role="bascode">    <item type="identifier">Beep</item></paragraph><paragraph role="bascode">    <item type="identifier">Beep</item></paragraph><paragraph role="bascode">    <item type="identifier">Beep</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�XO.@�@�@text/sbasic/shared/00000003.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Information</title><filename>/text/sbasic/shared/00000003.xhp</filename></topic></meta><body><paragraph role="heading" level="1">Information</paragraph><section id="languageformat"><paragraph role="paragraph">You can set the locale used for controlling the formatting numbers, dates and currencies in $[officename] Basic in <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - Language Settings - Languages</emph>. In Basic format codes, the decimal point (<emph>.</emph>) is always used as <emph>placeholder</emph> for the decimal separator defined in your locale and will be replaced by the corresponding character.</paragraph><paragraph role="paragraph">The same applies to the locale settings for date, time and currency formats. The Basic format code will be interpreted and displayed according to your locale setting.</paragraph></section><section id="farbcodes"><paragraph role="paragraph">The color values of the 16 basic colors are as follows:</paragraph><table><tablerow><tablecell><paragraph role="paragraph"><emph>Color Value</emph></paragraph></tablecell><tablecell><paragraph role="paragraph"><emph>Color Name</emph></paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">0</paragraph></tablecell><tablecell><paragraph role="paragraph">Black</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">128</paragraph></tablecell><tablecell><paragraph role="paragraph">Blue</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">32768</paragraph></tablecell><tablecell><paragraph role="paragraph">Green</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">32896</paragraph></tablecell><tablecell><paragraph role="paragraph">Cyan</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">8388608</paragraph></tablecell><tablecell><paragraph role="paragraph">Red</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">8388736</paragraph></tablecell><tablecell><paragraph role="paragraph">Magenta</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">8421376</paragraph></tablecell><tablecell><paragraph role="paragraph">Yellow</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">8421504</paragraph></tablecell><tablecell><paragraph role="paragraph">White</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">12632256</paragraph></tablecell><tablecell><paragraph role="paragraph">Gray</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">255</paragraph></tablecell><tablecell><paragraph role="paragraph">Light blue</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">65280</paragraph></tablecell><tablecell><paragraph role="paragraph">Light green</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">65535</paragraph></tablecell><tablecell><paragraph role="paragraph">Light cyan</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">16711680</paragraph></tablecell><tablecell><paragraph role="paragraph">Light red</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">16711935</paragraph></tablecell><tablecell><paragraph role="paragraph">Light magenta</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">16776960</paragraph></tablecell><tablecell><paragraph role="paragraph">Light yellow</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">16777215</paragraph></tablecell><tablecell><paragraph role="paragraph">Transparent white</paragraph></tablecell></tablerow></table></section><section id="errorcode"><paragraph role="heading" level="2"><variable id="errorcode">Error Codes
</variable></paragraph></section><section id="allerrors"><paragraph role="paragraph"><variable id="err1">1 An exception occurred
</variable></paragraph><paragraph role="paragraph"><variable id="err2">2 Syntax error
</variable></paragraph><paragraph role="paragraph"><variable id="err3">3 Return without Gosub
</variable></paragraph><paragraph role="paragraph"><variable id="err4">4 Incorrect entry; please retry
</variable></paragraph><paragraph role="paragraph"><variable id="err5">5 Invalid procedure call
</variable></paragraph><paragraph role="paragraph"><variable id="err6">6 Overflow
</variable></paragraph><paragraph role="paragraph"><variable id="err7">7 Not enough memory
</variable></paragraph><paragraph role="paragraph"><variable id="err8">8 Array already dimensioned
</variable></paragraph><paragraph role="paragraph"><variable id="err9">9 Index out of defined range
</variable></paragraph><paragraph role="paragraph"><variable id="err10">10 Duplicate definition
</variable></paragraph><paragraph role="paragraph"><variable id="err11">11 Division by zero
</variable></paragraph><paragraph role="paragraph"><variable id="err12">12 Variable not defined
</variable></paragraph><paragraph role="paragraph"><variable id="err13">13 Data type mismatch
</variable></paragraph><paragraph role="paragraph"><variable id="err14">14 Invalid parameter
</variable></paragraph><paragraph role="paragraph"><variable id="err18">18 Process interrupted by user
</variable></paragraph><paragraph role="paragraph"><variable id="err20">20 Resume without error
</variable></paragraph><paragraph role="paragraph"><variable id="err28">28 Not enough stack memory
</variable></paragraph><paragraph role="paragraph"><variable id="err35">35 Sub-procedure or function procedure not defined
</variable></paragraph><paragraph role="paragraph"><variable id="err48">48 Error loading DLL file
</variable></paragraph><paragraph role="paragraph"><variable id="err49">49 Wrong DLL call convention
</variable></paragraph><paragraph role="paragraph"><variable id="err51">51 Internal error
</variable></paragraph><paragraph role="paragraph"><variable id="err52">52 Invalid file name or file number
</variable></paragraph><paragraph role="paragraph"><variable id="err53">53 File not found
</variable></paragraph><paragraph role="paragraph"><variable id="err54">54 Incorrect file mode
</variable></paragraph><paragraph role="paragraph"><variable id="err55">55 File already open
</variable></paragraph><paragraph role="paragraph"><variable id="err57">57 Device I/O error
</variable></paragraph><paragraph role="paragraph"><variable id="err58">58 File already exists
</variable></paragraph><paragraph role="paragraph"><variable id="err59">59 Incorrect record length
</variable></paragraph><paragraph role="paragraph"><variable id="err61">61 Disk or hard drive full
</variable></paragraph><paragraph role="paragraph"><variable id="err62">62 Reading exceeds EOF
</variable></paragraph><paragraph role="paragraph"><variable id="err63">63 Incorrect record number
</variable></paragraph><paragraph role="paragraph"><variable id="err67">67 Too many files
</variable></paragraph><paragraph role="paragraph"><variable id="err68">68 Device not available
</variable></paragraph><paragraph role="paragraph"><variable id="err70">70 Access denied
</variable></paragraph><paragraph role="paragraph"><variable id="err71">71 Disk not ready
</variable></paragraph><paragraph role="paragraph"><variable id="err73">73 Not implemented
</variable></paragraph><paragraph role="paragraph"><variable id="err74">74 Renaming on different drives impossible
</variable></paragraph><paragraph role="paragraph"><variable id="err75">75 Path/file access error
</variable></paragraph><paragraph role="paragraph"><variable id="err76">76 Path not found
</variable></paragraph><paragraph role="paragraph"><variable id="err91">91 Object variable not set
</variable></paragraph><paragraph role="paragraph"><variable id="err93">93 Invalid string pattern
</variable></paragraph><paragraph role="paragraph"><variable id="err94">94 Use of zero not permitted
</variable></paragraph><paragraph role="paragraph"><variable id="err250">250 DDE Error
</variable></paragraph><paragraph role="paragraph"><variable id="err280">280 Awaiting response to DDE connection
</variable></paragraph><paragraph role="paragraph"><variable id="err281">281 No DDE channels available
</variable></paragraph><paragraph role="paragraph"><variable id="err282">282 No application responded to DDE connect initiation
</variable></paragraph><paragraph role="paragraph"><variable id="err283">283 Too many applications responded to DDE connect initiation
</variable></paragraph><paragraph role="paragraph"><variable id="err284">284 DDE channel locked
</variable></paragraph><paragraph role="paragraph"><variable id="err285">285 External application cannot execute DDE operation
</variable></paragraph><paragraph role="paragraph"><variable id="err286">286 Timeout while waiting for DDE response
</variable></paragraph><paragraph role="paragraph"><variable id="err287">287 user pressed ESCAPE during DDE operation
</variable></paragraph><paragraph role="paragraph"><variable id="err288">288 External application busy
</variable></paragraph><paragraph role="paragraph"><variable id="err289">289 DDE operation without data
</variable></paragraph><paragraph role="paragraph"><variable id="err290">290 Data are in wrong format
</variable></paragraph><paragraph role="paragraph"><variable id="err291">291 External application has been terminated
</variable></paragraph><paragraph role="paragraph"><variable id="err292">292 DDE connection interrupted or modified
</variable></paragraph><paragraph role="paragraph"><variable id="err293">293 DDE method invoked with no channel open
</variable></paragraph><paragraph role="paragraph"><variable id="err294">294 Invalid DDE link format
</variable></paragraph><paragraph role="paragraph"><variable id="err295">295 DDE message has been lost
</variable></paragraph><paragraph role="paragraph"><variable id="err296">296 Paste link already performed
</variable></paragraph><paragraph role="paragraph"><variable id="err297">297 Link mode cannot be set due to invalid link topic
</variable></paragraph><paragraph role="paragraph"><variable id="err298">298 DDE requires the DDEML.DLL file
</variable></paragraph><paragraph role="paragraph"><variable id="err323">323 Module cannot be loaded; invalid format
</variable></paragraph><paragraph role="paragraph"><variable id="err341">341 Invalid object index
</variable></paragraph><paragraph role="paragraph"><variable id="err366">366 Object is not available
</variable></paragraph><paragraph role="paragraph"><variable id="err380">380 Incorrect property value
</variable></paragraph><paragraph role="paragraph"><variable id="err382">382 This property is read-only
</variable></paragraph><paragraph role="paragraph"><variable id="err394">394 This property is write-only
</variable></paragraph><paragraph role="paragraph"><variable id="err420">420 Invalid object reference
</variable></paragraph><paragraph role="paragraph"><variable id="err423">423 Property or method not found
</variable></paragraph><paragraph role="paragraph"><variable id="err424">424 Object required
</variable></paragraph><paragraph role="paragraph"><variable id="err425">425 Invalid use of an object
</variable></paragraph><paragraph role="paragraph"><variable id="err430">430 OLE Automation is not supported by this object
</variable></paragraph><paragraph role="paragraph"><variable id="err438">438 This property or method is not supported by the object
</variable></paragraph><paragraph role="paragraph"><variable id="err440">440 OLE automation error
</variable></paragraph><paragraph role="paragraph"><variable id="err445">445 This action is not supported by given object
</variable></paragraph><paragraph role="paragraph"><variable id="err446">446 Named arguments are not supported by given object
</variable></paragraph><paragraph role="paragraph"><variable id="err447">447 The current locale setting is not supported by the given object
</variable></paragraph><paragraph role="paragraph"><variable id="err448">448 Named argument not found
</variable></paragraph><paragraph role="paragraph"><variable id="err449">449 Argument is not optional
</variable></paragraph><paragraph role="paragraph"><variable id="err450">450 Invalid number of arguments
</variable></paragraph><paragraph role="paragraph"><variable id="err451">451 Object is not a list
</variable></paragraph><paragraph role="paragraph"><variable id="err452">452 Invalid ordinal number
</variable></paragraph><paragraph role="paragraph"><variable id="err453">453 Specified DLL function not found
</variable></paragraph><paragraph role="paragraph"><variable id="err460">460 Invalid clipboard format
</variable></paragraph><paragraph role="paragraph"><variable id="err951">951 Unexpected symbol:
</variable></paragraph><paragraph role="paragraph"><variable id="err952">952 Expected:
</variable></paragraph><paragraph role="paragraph"><variable id="err953">953 Symbol expected
</variable></paragraph><paragraph role="paragraph"><variable id="err954">954 Variable expected
</variable></paragraph><paragraph role="paragraph"><variable id="err955">955 Label expected
</variable></paragraph><paragraph role="paragraph"><variable id="err956">956 Value cannot be applied
</variable></paragraph><paragraph role="paragraph"><variable id="err957">957 Variable already defined
</variable></paragraph><paragraph role="paragraph"><variable id="err958">958 Sub procedure or function procedure already defined
</variable></paragraph><paragraph role="paragraph"><variable id="err959">959 Label already defined
</variable></paragraph><paragraph role="paragraph"><variable id="err960">960 Variable not found
</variable></paragraph><paragraph role="paragraph"><variable id="err961">961 Array or procedure not found
</variable></paragraph><paragraph role="paragraph"><variable id="err962">962 Procedure not found
</variable></paragraph><paragraph role="paragraph"><variable id="err963">963 Label undefined
</variable></paragraph><paragraph role="paragraph"><variable id="err964">964 Unknown data type
</variable></paragraph><paragraph role="paragraph"><variable id="err965">965 Exit expected
</variable></paragraph><paragraph role="paragraph"><variable id="err966">966 Statement block still open: missing
</variable></paragraph><paragraph role="paragraph"><variable id="err967">967 Parentheses do not match
</variable></paragraph><paragraph role="paragraph"><variable id="err968">968 Symbol already defined differently
</variable></paragraph><paragraph role="paragraph"><variable id="err969">969 Parameters do not correspond to procedure
</variable></paragraph><paragraph role="paragraph"><variable id="err970">970 Invalid character in number
</variable></paragraph><paragraph role="paragraph"><variable id="err971">971 Array must be dimensioned
</variable></paragraph><paragraph role="paragraph"><variable id="err972">972 Else/Endif without If
</variable></paragraph><paragraph role="paragraph"><variable id="err973">973  not allowed within a procedure
</variable></paragraph><paragraph role="paragraph"><variable id="err974">974  not allowed outside a procedure
</variable></paragraph><paragraph role="paragraph"><variable id="err975">975 Dimension specifications do not match
</variable></paragraph><paragraph role="paragraph"><variable id="err976">976 Unknown option:
</variable></paragraph><paragraph role="paragraph"><variable id="err977">977 Constant redefined
</variable></paragraph><paragraph role="paragraph"><variable id="err978">978 Program too large
</variable></paragraph><paragraph role="paragraph"><variable id="err979">979 Strings or arrays not permitted
</variable></paragraph><paragraph role="paragraph"><variable id="err1000">1000 Object does not have this property
</variable></paragraph><paragraph role="paragraph"><variable id="err1001">1001 Object does not have this method
</variable></paragraph><paragraph role="paragraph"><variable id="err1002">1002 Required argument lacking
</variable></paragraph><paragraph role="paragraph"><variable id="err1003">1003 Invalid number of arguments
</variable></paragraph><paragraph role="paragraph"><variable id="err1004">1004 Error executing a method
</variable></paragraph><paragraph role="paragraph"><variable id="err1005">1005 Unable to set property
</variable></paragraph><paragraph role="paragraph"><variable id="err1006">1006 Unable to determine property
</variable></paragraph></section></body></helpdocument>
PK
Nw�XU����
�
text/sbasic/shared/03101140.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefStr Statement [Runtime]</title><filename>/text/sbasic/shared/03101140.xhp</filename></topic></meta><body><section id="defstr"><bookmark branch="index" id="bm_id6161381"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101140.xhp">DefStr Statement [Runtime]</link></paragraph><paragraph role="paragraph">If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Default variable type</paragraph><paragraph role="paragraph"><emph>DefStr:</emph> String</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definitions for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">DefStr</item> <item type="identifier">s</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefStr</item></paragraph><paragraph role="bascode">    <item type="identifier">sStr</item><item type="operator">=</item><item type="keyword">String</item> <item type="comment">' sStr is an implicit string variable</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X.��@@text/sbasic/shared/03120309.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>RTrim Function [Runtime]</title><filename>/text/sbasic/shared/03120309.xhp</filename></topic></meta><body><section id="rtrim"><bookmark branch="index" id="bm_id3154286"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120309.xhp">RTrim Function [Runtime]</link></paragraph><paragraph role="paragraph">Deletes the spaces at the end of a string expression.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03120305.xhp">LTrim Function</link></paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">RTrim</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text: </emph>Any string expression.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSpaces</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sText2</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item><item type="identifier">sText</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item><item type="identifier">sOut</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sText2</item> <item type="operator">=</item> <item type="string">" &lt;*Las Vegas*&gt; "</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="string">"'"</item><item type="operator">+</item><item type="identifier">sText2</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Ltrim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = "&lt;*Las Vegas*&gt; "</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item> <item type="string">"'"</item><item type="operator">+</item><item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item> <item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Rtrim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = " &lt;*Las Vegas*&gt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item> <item type="operator">+</item> <item type="identifier">Chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item> <item type="identifier">Trim</item><item type="operator">(</item><item type="identifier">sText2</item><item type="operator">)</item> <item type="comment">' sText = "&lt;*Las Vegas*&gt;"</item></paragraph><paragraph role="bascode">    <item type="identifier">sOut</item> <item type="operator">=</item> <item type="identifier">sOut</item> <item type="operator">+</item><item type="string">"'"</item><item type="operator">+</item> <item type="identifier">sText</item> <item type="operator">+</item><item type="string">"'"</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sOut</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��e�%�%text/sbasic/shared/03102100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Dim Statement [Runtime]</title><filename>/text/sbasic/shared/03102100.xhp</filename></topic></meta><body><section id="dimtext"><bookmark branch="index" id="bm_id3149812"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03102100.xhp">Dim Statement [Runtime]</link></paragraph><paragraph role="paragraph">Declares a variable or an array.</paragraph></section><paragraph role="paragraph">If the variables are separated by commas (for example, DIM sPar1, sPar2, sPar3 AS STRING), only Variant variables can be defined. Use a separate definition line for each variable.</paragraph><bascode><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sPar1</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sPar2</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sPar3</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph></bascode><paragraph role="paragraph">Dim declares local variables within subroutines. Global variables are declared with the PUBLIC or the PRIVATE statement.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">[ReDim]</item><item type="keyword">Dim</item> <item type="identifier">VarName</item> <item type="identifier">[(start To end)]</item> <item type="identifier">[As VarType]</item><item type="identifier">[, VarName2 [(start To end)]</item> <item type="identifier">[As VarType]</item><item type="identifier">[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>VarName:</emph> Any variable or array name.</paragraph><paragraph role="paragraph"><emph>Start, End:</emph> Numerical values or constants that define the number of elements (NumberElements=(end-start)+1) and the index range.</paragraph><paragraph role="paragraph">Start and End can be numerical expressions if ReDim is applied at the procedure level.</paragraph><paragraph role="paragraph"><emph>VarType:</emph> Key word that declares the data type of a variable.</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Variable type</paragraph><paragraph role="paragraph"><emph>Bool:</emph> Boolean variable (True, False)</paragraph><paragraph role="paragraph"><emph>Currency:</emph> Currency-Variable (Currency with 4 Decimal places)</paragraph><paragraph role="paragraph"><emph>Date:</emph> Date variable</paragraph><paragraph role="paragraph"><emph>Double:</emph> Double-precision floating-point variable (1,79769313486232 x 10E308 - 4,94065645841247 x 10E-324)</paragraph><paragraph role="paragraph"><emph>Integer:</emph> Integer variable (-32768 - 32767)</paragraph><paragraph role="paragraph"><emph>Long:</emph> Long integer variable (-2.147.483.648 - 2.147.483.647)</paragraph><paragraph role="paragraph"><emph>Object:</emph> Object variable (Note: this variable can only subsequently be defined with Set!)</paragraph><paragraph role="paragraph"><emph>Single:</emph> Single-precision floating-point variable (3,402823 x 10E38 - 1,401298 x 10E-45).</paragraph><paragraph role="paragraph"><emph>String:</emph> String variable consisting of a maximum of 64,000 ASCII characters.</paragraph><paragraph role="paragraph"><emph>[Variant]:</emph> Variant variable type (contains all types, specified by definition). If a key word is not specified, variables are automatically defined as Variant Type, unless a statement from DefBool to DefVar is used.</paragraph><paragraph role="paragraph">In $[officename] Basic, you do not need to declare variables explicitly. However, you need to declare an array before you can use them. You can declare a variable with the Dim statement, using commas to separate multiple declarations. To declare a variable type, enter a type-declaration character following the name or use a corresponding key word.</paragraph><paragraph role="paragraph">$[officename] Basic supports single or multi-dimensional arrays that are defined by a specified variable type. Arrays are suitable if the program contains lists or tables that you want to edit. The advantage of arrays is that it is possible to address individual elements according to indexes, which can be formulated as numeric expressions or variables.</paragraph><paragraph role="paragraph">Arrays are declared with the Dim statement. There are two methods to define the index range:</paragraph><paragraph role="paragraph">DIM text(20) as String REM 21 elements numbered from 0 to 20</paragraph><paragraph role="paragraph">DIM text(5 to 25) as String REM 21 elements numbered from 5 to 25</paragraph><paragraph role="paragraph">DIM text(-15 to 5) as String REM 21 elements (including 0)</paragraph><paragraph role="paragraph">REM numbered from -15 to 5</paragraph><paragraph role="paragraph">Two-dimensional data field</paragraph><paragraph role="paragraph">DIM text(20,2) as String REM 63 elements; form 0 to 20 level 1, from 0 to 20 level 2 and from 0 to 20 level 3.</paragraph><paragraph role="paragraph">You can declare an array types as dynamic if a ReDim statement defines the number of dimensions in the subroutine or the function that contains the array. Generally, you can only define an array dimension once, and you cannot modify it. Within a subroutine, you can declare an array with ReDim. You can only define dimensions with numeric expressions. This ensures that the fields are only as large as necessary.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDim1</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="string">"Office"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDim2</item></paragraph><paragraph role="bascode"><item type="comment">' Two-dimensional data field</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">stext</item><item type="operator">(</item><item type="number">20</item><item type="operator">,</item><item type="number">2</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Const</item> <item type="identifier">sDim</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="operator">=</item> <item type="string">" Dimension:"</item></paragraph><paragraph role="bascode"><item type="keyword">For</item> <item type="identifier">i</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">20</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">ii</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">2</item></paragraph><paragraph role="bascode">        <item type="identifier">stext</item><item type="operator">(</item><item type="identifier">i</item><item type="operator">,</item><item type="identifier">ii</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">str</item><item type="operator">(</item><item type="identifier">i</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">sDim</item> <item type="operator">&amp;</item> <item type="identifier">str</item><item type="operator">(</item><item type="identifier">ii</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">ii</item></paragraph><paragraph role="bascode"><item type="keyword">Next</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">For</item> <item type="identifier">i</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">20</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">ii</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">2</item></paragraph><paragraph role="bascode">        <item type="identifier">MsgBox</item> <item type="identifier">stext</item><item type="operator">(</item><item type="identifier">i</item><item type="operator">,</item><item type="identifier">ii</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">ii</item></paragraph><paragraph role="bascode"><item type="keyword">Next</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�MiB
B
text/sbasic/shared/03070100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>"-" Operator [Runtime]</title><filename>/text/sbasic/shared/03070100.xhp</filename></topic></meta><body><section id="subtraktion"><bookmark branch="index" id="bm_id3156042"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03070100.xhp">"-" Operator [Runtime]</link></paragraph><paragraph role="paragraph">Subtracts two values.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="identifier">Expression1</item> <item type="unknown">-</item> <item type="identifier">Expression2</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numerical expression that contains the result of the subtraction.</paragraph><paragraph role="paragraph"><emph>Expression1, Expression2:</emph> Any numerical expressions that you want to subtract.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSubtraction1</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="number">5</item> <item type="unknown">-</item> <item type="number">5</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSubtraction2</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iValue1</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iValue2</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iValue1</item> <item type="operator">=</item> <item type="number">5</item></paragraph><paragraph role="bascode">    <item type="identifier">iValue2</item> <item type="operator">=</item> <item type="number">10</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">iValue1</item> <item type="unknown">-</item> <item type="identifier">iValue2</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�Xaj'�text/sbasic/shared/03010102.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>MsgBox Function [Runtime]</title><filename>/text/sbasic/shared/03010102.xhp</filename></topic></meta><body><section id="msgbox"><bookmark branch="index" id="bm_id3153379"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03010102.xhp">MsgBox Function [Runtime]</link></paragraph><paragraph role="paragraph">Displays a dialog box containing a message and returns a value.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">MsgBox</item> <item type="operator">(</item><item type="keyword">Text</item> <item type="keyword">As</item> <item type="keyword">String</item> <item type="identifier">[,Type As Integer [,Dialogtitle As String]</item><item type="operator">]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameter:</paragraph><paragraph role="paragraph"><emph>Text</emph>: String expression displayed as a message in the dialog box. Line breaks can be inserted with Chr$(13).</paragraph><paragraph role="paragraph"><emph>DialogTitle</emph>: String expression displayed in the title bar of the dialog. If omitted, the name of the respective application is displayed.</paragraph><paragraph role="paragraph"><emph>Type</emph>: Any integer expression that specifies the dialog type and defines the number and type of buttons or icons displayed. <emph>Type</emph> represents a combination of bit patterns (dialog elements defined by adding the respective values):</paragraph><paragraph role="paragraph"><emph>Values</emph></paragraph><paragraph role="paragraph">0 : Display OK button only.</paragraph><paragraph role="paragraph">1 : Display OK and Cancel buttons.</paragraph><paragraph role="paragraph">2 : Display Abort, Retry, and Ignore buttons.</paragraph><paragraph role="paragraph">3 : Display Yes, No, and Cancel buttons.</paragraph><paragraph role="paragraph">4 : Display Yes and No buttons.</paragraph><paragraph role="paragraph">5 : Display Retry and Cancel buttons.</paragraph><paragraph role="paragraph">16 : Add the Stop icon to the dialog.</paragraph><paragraph role="paragraph">32 : Add the Question icon to the dialog.</paragraph><paragraph role="paragraph">48 : Add the Exclamation Point icon to the dialog.</paragraph><paragraph role="paragraph">64 : Add the Information icon to the dialog.</paragraph><paragraph role="paragraph">128 : First button in the dialog as default button.</paragraph><paragraph role="paragraph">256 : Second button in the dialog as default button.</paragraph><paragraph role="paragraph">512 : Third button in the dialog as default button.</paragraph><paragraph role="paragraph"><emph>Return value:</emph></paragraph><paragraph role="paragraph">1 : OK</paragraph><paragraph role="paragraph">2 : Cancel</paragraph><paragraph role="paragraph">3 : Abort</paragraph><paragraph role="paragraph">4 : Retry</paragraph><paragraph role="paragraph">5 : Ignore</paragraph><paragraph role="paragraph">6 : Yes</paragraph><paragraph role="paragraph">7 : No</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleMsgBox</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">MsgBox</item><item type="operator">(</item><item type="string">"Las Vegas"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">MsgBox</item><item type="operator">(</item><item type="string">"Las Vegas"</item><item type="operator">,</item><item type="number">1</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">MsgBox</item><item type="operator">(</item> <item type="string">"Las Vegas"</item><item type="operator">,</item><item type="number">256</item> <item type="operator">+</item> <item type="number">16</item> <item type="operator">+</item> <item type="number">2</item><item type="operator">,</item><item type="string">"Dialog title"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X|�
�text/sbasic/shared/03101700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefObj Statement [Runtime]</title><filename>/text/sbasic/shared/03101700.xhp</filename></topic></meta><body><section id="defobj"><bookmark branch="index" id="bm_id3149811"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101700.xhp">DefObj Statement [Runtime]</link></paragraph><paragraph role="paragraph">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set the default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword: </emph>Default variable type</paragraph><paragraph role="paragraph"><emph>DefObj:</emph> Object</paragraph><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">REM Prefix definitions for variable types:</paragraph><paragraph role="paragraph">DefBool b</paragraph><paragraph role="paragraph">DefDate t</paragraph><paragraph role="paragraph">DefDbL d</paragraph><paragraph role="paragraph">DefInt i</paragraph><paragraph role="paragraph">DefLng l</paragraph><paragraph role="paragraph">DefObj o</paragraph><paragraph role="paragraph">DefVar v</paragraph></body></helpdocument>
PK
Nw�X�h�text/sbasic/shared/03104300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DimArray Function [Runtime]</title><filename>/text/sbasic/shared/03104300.xhp</filename></topic></meta><body><section id="dimarray"><bookmark branch="index" id="bm_id3150616"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03104300.xhp">DimArray Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns a Variant array.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">DimArray</item> <item type="operator">(</item> <item type="identifier">Argument</item> <item type="identifier">list</item><item type="operator">)</item></paragraph></bascode><paragraph role="paragraph">See also <link href="text/sbasic/shared/03104200.xhp">Array</link></paragraph><paragraph role="paragraph">If no parameters are passed, an empty array is created (like Dim A() that is the same as a sequence of length 0 in Uno). If parameters are specified, a dimension is created for each parameter.</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Argument list:</emph> A list of any number of arguments that are separated by commas.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err9"/><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">DimArray( 2, 2, 4 ) is the same as DIM a( 2, 2, 4 )</paragraph></body></helpdocument>
PK
Nw�X�%
text/sbasic/shared/03080500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Integers</title><filename>/text/sbasic/shared/03080500.xhp</filename></topic></meta><body><section id="ganzzahl"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080500.xhp">Integers</link></paragraph><paragraph role="paragraph">The following functions round values to integers.</paragraph></section><embed href="text/sbasic/shared/03080501.xhp#fix"/><embed href="text/sbasic/shared/03080502.xhp#int"/></body></helpdocument>
PK
Nw�X�J��text/sbasic/shared/03020400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Managing Files</title><filename>/text/sbasic/shared/03020400.xhp</filename></topic></meta><body><section id="organisation"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020400.xhp">Managing Files</link></paragraph><paragraph role="paragraph">The functions and statements for managing files are described here.</paragraph></section><embed href="text/sbasic/shared/03020401.xhp#chdir"/><embed href="text/sbasic/shared/03020402.xhp#chdrive"/><embed href="text/sbasic/shared/03020403.xhp#curdir"/><embed href="text/sbasic/shared/03020404.xhp#dir"/><embed href="text/sbasic/shared/03020405.xhp#fileattr"/><embed href="text/sbasic/shared/03020406.xhp#filecopy"/><embed href="text/sbasic/shared/03020407.xhp#filedatetime"/><embed href="text/sbasic/shared/03020415.xhp#fileexists"/><embed href="text/sbasic/shared/03020408.xhp#filelen"/><embed href="text/sbasic/shared/03020409.xhp#getattr"/><embed href="text/sbasic/shared/03020410.xhp#kill"/><embed href="text/sbasic/shared/03020411.xhp#mkdir"/><embed href="text/sbasic/shared/03020412.xhp#name"/><embed href="text/sbasic/shared/03020413.xhp#rmdir"/><embed href="text/sbasic/shared/03020414.xhp#setattr"/></body></helpdocument>
PK
Nw�X[)���text/sbasic/shared/main0601.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>$[officename] Basic Help</title><filename>/text/sbasic/shared/main0601.xhp</filename></topic></meta><body><bookmark branch="hid/HID_GLOBAL_FALLBACK" id="bm_id3143284"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/main0601.xhp">%PRODUCTNAME Basic Help</link></paragraph><section id="basicalt"><paragraph role="paragraph">%PRODUCTNAME provides an Application Programming Interface (API) that allows controlling the $[officename] components with different programming languages by using the $[officename] Software Development Kit (SDK). For more information about the $[officename] API and the Software Development Kit, visit <link href="http://api.libreoffice.org/">http://api.libreoffice.org</link></paragraph><paragraph role="paragraph">This help section explains the most common runtime functions of %PRODUCTNAME Basic. For more in-depth information please refer to the <link href="http://wiki.documentfoundation.org/Documentation/BASIC_Guide">OpenOffice.org BASIC Programming Guide</link> on the Wiki.</paragraph></section><paragraph role="heading" level="3">Working with %PRODUCTNAME Basic</paragraph><embed href="text/sbasic/shared/01000000.xhp#doc_title"/><embed href="text/sbasic/shared/03000000.xhp#doc_title"/><embed href="text/shared/guide/macro_recording.xhp#macro_recording"/><embed href="text/sbasic/guide/create_dialog.xhp#create_dialog"/><embed href="text/sbasic/guide/insert_control.xhp#insert_control"/><embed href="text/sbasic/guide/control_properties.xhp#control_properties"/><embed href="text/sbasic/guide/show_dialog.xhp#show_dialog"/><embed href="text/sbasic/guide/sample_code.xhp#sample_code"/><paragraph role="heading" level="3">Help about the Help</paragraph><embed href="text/shared/05/00000100.xhp#neuehilfe"/><embed href="text/shared/05/00000110.xhp#00000110"/><embed href="text/shared/05/00000120.xhp#00000120"/><embed href="text/shared/05/00000130.xhp#00000130"/><embed href="text/shared/05/00000140.xhp#00000140"/><embed href="text/shared/05/00000150.xhp#doc_title"/><embed href="text/shared/05/00000160.xhp#doc_title"/></body></helpdocument>
PK
Nw�X�ٲ0��text/sbasic/shared/03080601.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Abs Function [Runtime]</title><filename>/text/sbasic/shared/03080601.xhp</filename></topic></meta><body><section id="abs"><bookmark branch="index" id="bm_id3159201"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080601.xhp">Abs Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the absolute value of a numeric expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Abs</item> <item type="operator">(</item><item type="identifier">Number</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Number:</emph> Any numeric expression that you want to return the absolute value for. Positive numbers, including 0, are returned unchanged, whereas negative numbers are converted to positive numbers.</paragraph><paragraph role="paragraph">The following example uses the Abs function to calculate the difference between two values. It does not matter which value you enter first.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDifference</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">siW1</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">siW2</item> <item type="keyword">As</item> <item type="keyword">Single</item></paragraph><paragraph role="bascode">    <item type="identifier">siW1</item> <item type="operator">=</item> <item type="identifier">Int</item><item type="operator">(</item><item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Please enter the first amount"</item><item type="operator">,</item><item type="string">"Value Input"</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">siW2</item> <item type="operator">=</item> <item type="identifier">Int</item><item type="operator">(</item><item type="identifier">InputBox</item><item type="operator">(</item><item type="string">"Please enter the second amount"</item><item type="operator">,</item><item type="string">"Value Input"</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="string">"The difference is "</item><item type="operator">;</item> <item type="identifier">Abs</item><item type="operator">(</item><item type="identifier">siW1</item> <item type="unknown">-</item> <item type="identifier">siW2</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X,�>���text/sbasic/shared/03131700.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GetProcessServiceManager Function [Runtime]</title><filename>/text/sbasic/shared/03131700.xhp</filename></topic></meta><body><section id="getprocessservicemanager"><bookmark branch="index" id="bm_id3153255"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03131700.xhp">GetProcessServiceManager Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the ProcessServiceManager (central Uno ServiceManager).</paragraph></section><paragraph role="paragraph">This function is required when you want to instantiate a service using CreateInstanceWithArguments.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">oServiceManager</item> <item type="operator">=</item> <item type="identifier">GetProcessServiceManager</item><item type="operator">(</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">oServiceManager = GetProcessServiceManager()</paragraph><paragraph role="paragraph">oIntrospection = oServiceManager.createInstance("com.sun.star.beans.Introspection");</paragraph><paragraph role="paragraph">this is the same as the following statement:</paragraph><paragraph role="paragraph">oIntrospection = CreateUnoService("com.sun.star.beans.Introspection")</paragraph></body></helpdocument>
PK
Nw�X��i�
�
text/sbasic/shared/03101120.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefErr Statement [Runtime]</title><filename>/text/sbasic/shared/03101120.xhp</filename></topic></meta><body><section id="deferr"><bookmark branch="index" id="bm_id8177739"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101120.xhp">DefErr Statement [Runtime]</link></paragraph><paragraph role="paragraph">If no type-declaration character or keyword is specified, the DefErr statement sets the default variable type, according to a letter range.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Default variable type</paragraph><paragraph role="paragraph"><emph>DefErr:</emph> Error</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">' Prefix definitions for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbl</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">DefErr</item> <item type="identifier">e</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefErr</item></paragraph><paragraph role="bascode">    <item type="identifier">eErr</item><item type="operator">=</item><item type="keyword">Error</item> <item type="comment">' eErr is an implicit error variable</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xji[�88text/sbasic/shared/03120401.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>InStr Function [Runtime]</title><filename>/text/sbasic/shared/03120401.xhp</filename></topic></meta><body><section id="instr"><bookmark branch="index" id="bm_id3155934"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120401.xhp">InStr Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the position of a string within another string.</paragraph></section><paragraph role="paragraph">The Instr function returns the position at which the match was found. If the string was not found, the function returns 0.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">InStr</item> <item type="operator">(</item><item type="identifier">[Start As Long,]</item> <item type="identifier">Text1</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">Text2</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="identifier">[, Compare]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Integer</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Start: </emph>A numeric expression that marks the position in a string where the search for the specified substring starts. If you omit this parameter, the search starts at the first character of the string. The maximum allowed value is 65535.</paragraph><paragraph role="paragraph"><emph>Text1:</emph> The string expression that you want to search.</paragraph><paragraph role="paragraph"><emph>Text2:</emph> The string expression that you want to search for.</paragraph><paragraph role="paragraph"><emph>Compare:</emph> Optional numeric expression that defines the type of comparison. The value of this parameter can be 0 or 1. The default value of 1 specifies a text comparison that is not case-sensitive. The value of 0 specifies a binary comparison that is case-sensitive.</paragraph><paragraph role="paragraph">To avoid a run-time error, do not set the Compare parameter if the first return parameter is omitted.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExamplePosition</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sInput</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iPos</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">sInput</item> <item type="operator">=</item> <item type="string">"Office"</item></paragraph><paragraph role="bascode">    <item type="identifier">iPos</item> <item type="operator">=</item> <item type="identifier">Instr</item><item type="operator">(</item><item type="identifier">sInput</item><item type="operator">,</item><item type="string">"c"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Print</item> <item type="identifier">iPos</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��;�MMtext/sbasic/shared/03104100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Optional (in Function Statement) [Runtime]</title><filename>/text/sbasic/shared/03104100.xhp</filename></topic></meta><body><section id="optional"><bookmark branch="index" id="bm_id3149205"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03104100.xhp">Optional (in Function Statement) [Runtime]</link></paragraph><paragraph role="paragraph">Allows you to define parameters that are passed to a function as optional.</paragraph></section><paragraph role="paragraph">See also: <link href="text/sbasic/shared/03104000.xhp">IsMissing</link></paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">MyFunction</item><item type="operator">(</item><item type="identifier">Text1</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="keyword">Optional</item> <item type="identifier">Arg2</item><item type="operator">,</item> <item type="keyword">Optional</item> <item type="identifier">Arg3</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Examples:</paragraph><paragraph role="paragraph">Result = MyFunction("Here", 1, "There") ' all arguments are passed.</paragraph><paragraph role="paragraph">Result = MyFunction("Test", ,1) ' second argument is missing.</paragraph><paragraph role="paragraph">See also <link href="text/sbasic/guide/sample_code.xhp">Examples</link>.</paragraph></body></helpdocument>
PK
Nw�X�`�1��text/sbasic/shared/03090410.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Switch Function [Runtime]</title><filename>/text/sbasic/shared/03090410.xhp</filename></topic></meta><body><section id="switch"><bookmark branch="index" id="bm_id3148554"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090410.xhp">Switch Function [Runtime]</link></paragraph><paragraph role="paragraph">Evaluates a list of arguments, consisting of an expression followed by a value. The Switch function returns a value that is associated with the expression that is passed by this function.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Switch</item> <item type="operator">(</item><item type="identifier">Expression1</item><item type="operator">,</item> <item type="identifier">Value1</item><item type="identifier">[, Expression2, Value2[..., Expression_n, Value_n]</item><item type="operator">]</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">The <emph>Switch</emph> function evaluates the expressions from left to right, and then returns the value that is assigned to the function expression. If expression and value are not given as a pair, a runtime error occurs.</paragraph><paragraph role="paragraph"><emph>Expression:</emph> The expression that you want to evaluate.</paragraph><paragraph role="paragraph"><emph>Value:</emph> The value that you want to return if the expression is True.</paragraph><paragraph role="paragraph">In the following example, the <emph>Switch</emph> function assigns the appropriate gender to the name that is passed to the function:</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleSwitch</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sGender</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sGender</item> <item type="operator">=</item> <item type="identifier">GetGenderIndex</item><item type="operator">(</item> <item type="string">"John"</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sGender</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">GetGenderIndex</item> <item type="operator">(</item><item type="identifier">sName</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">GetGenderIndex</item> <item type="operator">=</item> <item type="identifier">Switch</item><item type="operator">(</item><item type="identifier">sName</item> <item type="operator">=</item> <item type="string">"Jane"</item><item type="operator">,</item> <item type="string">"female"</item><item type="operator">,</item> <item type="identifier">sName</item> <item type="operator">=</item> <item type="string">"John"</item><item type="operator">,</item> <item type="string">"male"</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xۮ�?PPtext/sbasic/shared/03131900.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>GlobalScope [Runtime]</title><filename>/text/sbasic/shared/03131900.xhp</filename></topic></meta><body><section id="globalscope"><bookmark branch="index" id="bm_id3150682"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03131900.xhp">GlobalScope [Runtime]</link></paragraph><paragraph role="paragraph">Basic source code and dialogs are organized in a library system.</paragraph></section><list type="unordered"><listitem><paragraph role="listitem">The LibraryContainer contains libraries</paragraph></listitem><listitem><paragraph role="listitem">Libraries can contain modules and dialogs</paragraph></listitem></list><paragraph role="heading" level="2">In Basic:</paragraph><list type="unordered"><listitem><paragraph role="listitem">The LibraryContainer is called <emph>BasicLibraries</emph>.</paragraph></listitem></list><paragraph role="heading" level="2">In dialogs:</paragraph><list type="unordered"><listitem><paragraph role="listitem">The LibraryContainer is called <emph>DialogLibraries</emph>.</paragraph></listitem></list><paragraph role="paragraph">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><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">GlobalScope</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">Example in the document Basic</paragraph><paragraph role="paragraph">' calling Dialog1 in the document library Standard</paragraph><paragraph role="paragraph">oDlgDesc = DialogLibraries.Standard.Dialog1</paragraph><paragraph role="paragraph">' calling Dialog2 in the application library Library1</paragraph><paragraph role="paragraph">oDlgDesc = GlobalScope.DialogLibraries.Library1.Dialog2</paragraph></body></helpdocument>
PK
Nw�X�^ �
�
text/sbasic/shared/03101110.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>DefCur Statement [Runtime]</title><filename>/text/sbasic/shared/03101110.xhp</filename></topic></meta><body><section id="defcur"><bookmark branch="index" id="bm_id9555345"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101110.xhp">DefCur Statement [Runtime]</link></paragraph><paragraph role="paragraph">If no type-declaration character or keyword is specified, the DefCur statement sets the default variable type, according to a letter range.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Defxxx</item> <item type="identifier">Characterrange1</item><item type="identifier">[, Characterrange2[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph><paragraph role="paragraph"><emph>xxx:</emph> Keyword that defines the default variable type:</paragraph><paragraph role="paragraph"><emph>Keyword:</emph> Default variable type</paragraph><paragraph role="paragraph"><emph>DefCur:</emph> Currency</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="comment">REM Prefix definitions for variable types:</item></paragraph><paragraph role="bascode"><item type="keyword">DefBool</item> <item type="identifier">b</item></paragraph><paragraph role="bascode"><item type="keyword">DefDate</item> <item type="identifier">t</item></paragraph><paragraph role="bascode"><item type="keyword">DefDbL</item> <item type="identifier">d</item></paragraph><paragraph role="bascode"><item type="keyword">DefInt</item> <item type="identifier">i</item></paragraph><paragraph role="bascode"><item type="keyword">DefLng</item> <item type="identifier">l</item></paragraph><paragraph role="bascode"><item type="keyword">DefObj</item> <item type="identifier">o</item></paragraph><paragraph role="bascode"><item type="keyword">DefVar</item> <item type="identifier">v</item></paragraph><paragraph role="bascode"><item type="keyword">DefCur</item> <item type="identifier">c</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDefCur</item></paragraph><paragraph role="bascode">    <item type="identifier">cCur</item><item type="operator">=</item><item type="keyword">Currency</item> <item type="comment">REM cCur is an implicit currency variable</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�a�text/sbasic/shared/03020404.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Dir Function [Runtime]</title><filename>/text/sbasic/shared/03020404.xhp</filename></topic></meta><body><section id="dir"><bookmark branch="index" id="bm_id3154347"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03020404.xhp">Dir Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the name of a file, a directory, or all of the files and the directories on a drive or in a directory that match the specified search path.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Dir</item> <item type="identifier">[(Text As String) [, Attrib As Integer]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that specifies the search path, directory or file. This argument can only be specified the first time that you call the Dir function. If you want, you can enter the path in <link href="text/sbasic/shared/00000002.xhp">URL notation</link>.</paragraph><paragraph role="paragraph"><emph>Attrib: </emph>Any integer expression that specifies bitwise file attributes. The Dir function only returns files or directories that match the specified attributes. You can combine several attributes by adding the attribute values:</paragraph><paragraph role="paragraph">0 : Normal files.</paragraph><paragraph role="paragraph">16 : Returns the name of the directory only.</paragraph><paragraph role="paragraph">Use this attribute to check if a file or directory exists, or to determine all files and folders in a specific directory.</paragraph><paragraph role="paragraph">To check if a file exists, enter the complete path and name of the file. If the file or directory name does not exist, the Dir function returns a zero-length string ("").</paragraph><paragraph role="paragraph">To generate a list of all existing files in a specific directory, proceed as follows: The first time you call the Dir function, specify the complete search path for the files, for example, "D:\Files\*.ods". If the path is correct and the search finds at least one file, the Dir function returns the name of the first file that matches the search path. To return additional file names that match the path, call Dir again, but with no arguments.</paragraph><paragraph role="paragraph">To return directories only, use the attribute parameter. The same applies if you want to determine the name of a volume (for example, a hard drive partition)</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><embed href="text/sbasic/shared/00000003.xhp#err53"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleDir</item></paragraph><paragraph role="bascode"><item type="comment">' Displays all files and directories</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sPath</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sDir</item> <item type="keyword">As</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">sValue</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">sDir</item><item type="operator">=</item><item type="string">"Directories:"</item></paragraph><paragraph role="bascode">    <item type="identifier">sPath</item> <item type="operator">=</item> <item type="identifier">CurDir</item></paragraph><paragraph role="bascode">    <item type="identifier">sValue</item> <item type="operator">=</item> <item type="identifier">Dir$</item><item type="operator">(</item><item type="identifier">sPath</item> <item type="operator">+</item> <item type="identifier">getPathSeparator</item> <item type="operator">+</item> <item type="string">"*"</item><item type="operator">,</item><item type="number">16</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Do</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">sValue</item> <item type="operator">&lt;</item><item type="operator">&gt;</item> <item type="string">"."</item> <item type="keyword">And</item> <item type="identifier">sValue</item> <item type="operator">&lt;</item><item type="operator">&gt;</item> <item type="string">".."</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">            <item type="keyword">If</item> <item type="operator">(</item><item type="identifier">GetAttr</item><item type="operator">(</item> <item type="identifier">sPath</item> <item type="operator">+</item> <item type="identifier">getPathSeparator</item> <item type="operator">+</item> <item type="identifier">sValue</item><item type="operator">)</item> <item type="keyword">And</item> <item type="number">16</item><item type="operator">)</item> <item type="operator">&gt;</item><item type="number">0</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">                <item type="comment">' Get the directories</item></paragraph><paragraph role="bascode">                <item type="identifier">sDir</item> <item type="operator">=</item> <item type="identifier">sDir</item> <item type="operator">&amp;</item> <item type="identifier">chr</item><item type="operator">(</item><item type="number">13</item><item type="operator">)</item> <item type="operator">&amp;</item> <item type="identifier">sValue</item></paragraph><paragraph role="bascode">            <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">        <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">        <item type="identifier">sValue</item> <item type="operator">=</item> <item type="identifier">Dir$</item></paragraph><paragraph role="bascode">    <item type="keyword">Loop</item> <item type="keyword">Until</item> <item type="identifier">sValue</item> <item type="operator">=</item> <item type="string">""</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sDir</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="identifier">sPath</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X3����text/sbasic/shared/03101000.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CStr Function [Runtime]</title><filename>/text/sbasic/shared/03101000.xhp</filename></topic></meta><body><section id="cstr"><bookmark branch="index" id="bm_id3146958"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03101000.xhp">CStr Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts any numeric expression to a string expression.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CStr</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any valid string or numeric expression that you want to convert.</paragraph><paragraph role="heading" level="2">Expression Types and Conversion Returns</paragraph><table><tablerow><tablecell><paragraph role="paragraph">Boolean :</paragraph></tablecell><tablecell><paragraph role="paragraph">String that evaluates to either <emph>True</emph> or <emph>False</emph>.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Date :</paragraph></tablecell><tablecell><paragraph role="paragraph">String that contains the date and time.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Null :</paragraph></tablecell><tablecell><paragraph role="paragraph">Run-time error.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Empty :</paragraph></tablecell><tablecell><paragraph role="paragraph">String without any characters.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Any :</paragraph></tablecell><tablecell><paragraph role="paragraph">Corresponding number as string.</paragraph></tablecell></tablerow></table><paragraph role="paragraph">Zeros at the end of a floating-point number are not included in the returned string.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCSTR</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">sVar</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CDbl</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CInt</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CLng</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CSng</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">sVar</item> <item type="operator">=</item> <item type="identifier">CStr</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sVar</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�XN�g,��text/sbasic/shared/03060400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Not-Operator [Runtime]</title><filename>/text/sbasic/shared/03060400.xhp</filename></topic></meta><body><section id="not"><bookmark branch="index" id="bm_id3156024"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03060400.xhp">Not-Operator [Runtime]</link></paragraph><paragraph role="paragraph">Negates an expression by inverting the bit values.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Result</item> <item type="operator">=</item> <item type="keyword">Not</item> <item type="identifier">Expression</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Result:</emph> Any numeric variable that contains the result of the negation.</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any expression that you want to negate.</paragraph><paragraph role="paragraph">When a Boolean expression is negated, the value True changes to False, and the value False changes to True.</paragraph><paragraph role="paragraph">In a bitwise negation each individual bit is inverted.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleNot</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vA</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vB</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vC</item> <item type="keyword">As</item> <item type="keyword">Variant</item><item type="operator">,</item> <item type="identifier">vD</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">vOut</item> <item type="keyword">As</item> <item type="keyword">Variant</item></paragraph><paragraph role="bascode">    <item type="identifier">vA</item> <item type="operator">=</item> <item type="number">10</item><item type="parameter">:</item> <item type="identifier">vB</item> <item type="operator">=</item> <item type="number">8</item><item type="parameter">:</item> <item type="identifier">vC</item> <item type="operator">=</item> <item type="number">6</item><item type="parameter">:</item> <item type="identifier">vD</item> <item type="operator">=</item> <item type="identifier">Null</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="keyword">Not</item> <item type="identifier">vA</item> <item type="comment">' Returns -11</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="keyword">Not</item><item type="operator">(</item><item type="identifier">vC</item> <item type="operator">&gt;</item> <item type="identifier">vD</item><item type="operator">)</item> <item type="comment">' Returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="keyword">Not</item><item type="operator">(</item><item type="identifier">vB</item> <item type="operator">&gt;</item> <item type="identifier">vA</item><item type="operator">)</item> <item type="comment">' Returns -1</item></paragraph><paragraph role="bascode">    <item type="identifier">vOut</item> <item type="operator">=</item> <item type="keyword">Not</item><item type="operator">(</item><item type="identifier">vA</item> <item type="operator">&gt;</item> <item type="identifier">vB</item><item type="operator">)</item> <item type="comment">' Returns 0</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�X��V&{{text/sbasic/shared/00000002.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>$[officename] Basic Glossary</title><filename>/text/sbasic/shared/00000002.xhp</filename></topic></meta><body><paragraph role="heading" level="1"><link href="text/sbasic/shared/00000002.xhp">$[officename] Basic Glossary</link></paragraph><paragraph role="paragraph">This glossary explains some technical terms that you may come across when working with $[officename] Basic.</paragraph><sort order="asc"><section id="dezimal"><paragraph role="heading" level="2">Decimal Point</paragraph><paragraph role="paragraph">When converting numbers, $[officename] Basic uses the locale settings of the system for determining the type of decimal and thousand separator.</paragraph><paragraph role="paragraph">The behavior has an effect on both the implicit conversion ( 1 + "2.3" = 3.3 ) as well as the runtime function <link href="text/sbasic/shared/03102700.xhp">IsNumeric</link>.</paragraph></section><section id="colors"><paragraph role="heading" level="2">Colors</paragraph><paragraph role="paragraph">In $[officename] Basic, colors are treated as long integer value. The return value of color queries is also always a long integer value. When defining properties, colors can be specified using their RGB code that is converted to a long integer value using the <link href="text/sbasic/shared/03010305.xhp">RGB function</link>.</paragraph></section><section id="measurementunits"><paragraph role="heading" level="2">Measurement Units</paragraph><paragraph role="paragraph">In $[officename] Basic, a <emph>method parameter</emph> or a <emph>property</emph> expecting unit information can be specified either as integer or long integer expression without a unit, or as a character string containing a unit. If no unit is passed to the method the default unit defined for the active document type will be used. If the parameter is passed as a character string containing a measurement unit, the default setting will be ignored. The default measurement unit for a document type can be set under <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - (Document Type) - General</emph>.</paragraph></section><section id="twips"><bookmark branch="index" id="bm_id3145801"/><paragraph role="heading" level="2">Twips</paragraph><paragraph role="paragraph">A twip is a screen-independent unit which is used to define the uniform position and size of screen elements on all display systems. A twip is 1/1440th of an inch or 1/20 of a printer's point. There are 1440 twips to an inch or about 567 twips to a centimeter.</paragraph></section><section id="urlnotation"><paragraph role="heading" level="2">URL Notation</paragraph><paragraph role="paragraph">URLs (<emph>Uniform Resource Locators</emph>) are used to determine the location of a resource like a file in a file system, typically inside a network environment. A URL consists of a protocol specifier, a host specifier and a file and path specifier:</paragraph><paragraph role="paragraph"><emph>protocol</emph>://<emph>host.name</emph>/<emph>path/to/the/file.html</emph></paragraph><paragraph role="paragraph">The most common usage of URLs is on the internet when specifying web pages. Example for protocols are <emph>http</emph>, <emph>ftp</emph>, or <emph>file</emph>. The <emph>file</emph> protocol specifier is used when referring to a file on the local file system.</paragraph><paragraph role="paragraph">URL notation does not allow certain special characters to be used. These are either replaced by other characters or encoded. A slash (<emph>/</emph>) is used as a path separator. For example, a file referred to as <emph>C:\My File.odt</emph> on the local host in "Windows notation" becomes <emph>file:///C|/My%20File.odt</emph> in URL notation.</paragraph></section></sort></body></helpdocument>
PK
Nw�Xx&!,��text/sbasic/shared/03103500.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Static Statement [Runtime]</title><filename>/text/sbasic/shared/03103500.xhp</filename></topic></meta><body><section id="static"><bookmark branch="index" id="bm_id3149798"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103500.xhp">Static Statement [Runtime]</link></paragraph><paragraph role="paragraph">Declares a variable or an array at the procedure level within a subroutine or a function, so that the values of the variable or the array are retained after exiting the subroutine or function. Dim statement conventions are also valid.</paragraph></section><paragraph role="warning">The <emph>Static statement</emph> cannot be used to define variable arrays. Arrays must be specified according to a fixed size.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Static</item> <item type="identifier">VarName</item><item type="identifier">[(start To end)]</item> <item type="identifier">[As VarType]</item><item type="operator">,</item> <item type="identifier">VarName2</item><item type="identifier">[(start To end)]</item> <item type="identifier">[As VarType]</item><item type="operator">,</item> <item type="operator">.</item><item type="operator">.</item><item type="operator">.</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleStatic</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">As</item> <item type="keyword">Integer</item><item type="operator">,</item> <item type="identifier">iResult</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="keyword">For</item> <item type="identifier">iCount</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">To</item> <item type="number">2</item></paragraph><paragraph role="bascode">        <item type="identifier">iResult</item> <item type="operator">=</item> <item type="identifier">InitVar</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Next</item> <item type="identifier">iCount</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">iResult</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"The answer is"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph><paragraph role="bascode"> </paragraph><paragraph role="bascode"><item type="comment">' Function for initialization of the static variable</item></paragraph><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">InitVar</item><item type="operator">(</item><item type="operator">)</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="keyword">Static</item> <item type="identifier">iInit</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="keyword">Const</item> <item type="identifier">iMinimum</item> <item type="keyword">As</item> <item type="keyword">Integer</item> <item type="operator">=</item> <item type="number">40</item> <item type="comment">' minimum return value of this function</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">iInit</item> <item type="operator">=</item> <item type="number">0</item> <item type="keyword">Then</item> <item type="comment">' check if initialized</item></paragraph><paragraph role="bascode">        <item type="identifier">iInit</item> <item type="operator">=</item> <item type="identifier">iMinimum</item></paragraph><paragraph role="bascode">    <item type="keyword">Else</item></paragraph><paragraph role="bascode">        <item type="identifier">iInit</item> <item type="operator">=</item> <item type="identifier">iInit</item> <item type="operator">+</item> <item type="number">1</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="identifier">InitVar</item> <item type="operator">=</item> <item type="identifier">iInit</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode></body></helpdocument>
PK
Nw�X6�D||text/sbasic/shared/03120400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Editing String Length</title><filename>/text/sbasic/shared/03120400.xhp</filename></topic></meta><body><section id="ermitteln"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120400.xhp">Editing String Length</link></paragraph><paragraph role="paragraph">The following functions determine string lengths and compare strings.</paragraph></section><embed href="text/sbasic/shared/03120401.xhp#instr"/><embed href="text/sbasic/shared/03120402.xhp#len"/><embed href="text/sbasic/shared/03120403.xhp#strcomp"/></body></helpdocument>
PK
Nw�X��y�QQtext/sbasic/shared/03090404.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>End Statement [Runtime]</title><filename>/text/sbasic/shared/03090404.xhp</filename></topic></meta><body><section id="end"><bookmark branch="index" id="bm_id3150771"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090404.xhp">End Statement [Runtime]</link></paragraph><paragraph role="paragraph">Ends a procedure or block.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">End</item><item type="operator">,</item> <item type="keyword">End</item> <item type="keyword">Function</item><item type="operator">,</item> <item type="keyword">End</item> <item type="keyword">If</item><item type="operator">,</item> <item type="keyword">End</item> <item type="keyword">Select</item><item type="operator">,</item> <item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph">Use the End statement as follows:</paragraph><paragraph role="heading" level="2">Statement</paragraph><paragraph role="paragraph">End: Is not required, but can be entered anywhere within a procedure to end the program execution.</paragraph><paragraph role="paragraph">End Function: Ends a <emph>Function</emph> statement.</paragraph><paragraph role="paragraph">End If: Marks the end of a <emph>If...Then...Else</emph> block.</paragraph><paragraph role="paragraph">End Select: Marks the end of a <emph>Select Case</emph> block.</paragraph><paragraph role="paragraph">End Sub: Ends a <emph>Sub</emph> statement.</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleRandomSelect</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iVar</item> <item type="operator">=</item> <item type="identifier">Int</item><item type="operator">(</item><item type="operator">(</item><item type="number">15</item> <item type="operator">*</item> <item type="identifier">Rnd</item><item type="operator">)</item> <item type="unknown">-</item><item type="number">2</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Select</item> <item type="keyword">Case</item> <item type="identifier">iVar</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">1</item> <item type="keyword">To</item> <item type="number">5</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Number from 1 to 5"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="number">6</item><item type="operator">,</item> <item type="number">7</item><item type="operator">,</item> <item type="number">8</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Number from 6 to 8"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="keyword">Is</item> <item type="operator">&gt;</item> <item type="number">8</item> <item type="keyword">And</item> <item type="identifier">iVar</item> <item type="operator">&lt;</item> <item type="number">11</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Greater than 8"</item></paragraph><paragraph role="bascode">        <item type="keyword">Case</item> <item type="keyword">Else</item></paragraph><paragraph role="bascode">            <item type="keyword">Print</item> <item type="string">"Outside range 1 to 10"</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">Select</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��`��text/sbasic/shared/03080400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Square Root Calculation</title><filename>/text/sbasic/shared/03080400.xhp</filename></topic></meta><body><section id="quadrat"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080400.xhp">Square Root Calculation</link></paragraph><paragraph role="paragraph">Use this function to calculate square roots.</paragraph></section><embed href="text/sbasic/shared/03080401.xhp#sqr"/></body></helpdocument>
PK
Nw�X;��+text/sbasic/shared/03030302.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Time Statement [Runtime]</title><filename>/text/sbasic/shared/03030302.xhp</filename></topic></meta><body><section id="time"><bookmark branch="index" id="bm_id3145090"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030302.xhp">Time Statement [Runtime]</link></paragraph><paragraph role="paragraph">This function returns the current system time as a string in the format "HH:MM:SS".</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">Time</item></paragraph></bascode><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Text:</emph> Any string expression that specifies the new time in the format "HH:MM:SS".</paragraph><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleTime</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">Time</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"The time is"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X,��text/sbasic/shared/03120313.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>ConvertFromURL Function [Runtime]</title><filename>/text/sbasic/shared/03120313.xhp</filename></topic></meta><body><section id="convertfromurl"><bookmark branch="index" id="bm_id3153894"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03120313.xhp">ConvertFromURL Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts a file URL to a system file name.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">ConvertFromURL</item><item type="operator">(</item><item type="identifier">filename</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">String</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Filename:</emph> A file name as a string.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><paragraph role="paragraph">systemFile$ = "c:\folder\mytext.txt"</paragraph><paragraph role="paragraph">url$ = ConvertToURL( systemFile$ )</paragraph><paragraph role="paragraph">print url$</paragraph><paragraph role="paragraph">systemFileAgain$ = ConvertFromURL( url$ )</paragraph><paragraph role="paragraph">print systemFileAgain$</paragraph></body></helpdocument>
PK
Nw�X�a�gHHtext/sbasic/shared/03080300.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Generating Random Numbers</title><filename>/text/sbasic/shared/03080300.xhp</filename></topic></meta><body><section id="zufall"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080300.xhp">Generating Random Numbers</link></paragraph><paragraph role="paragraph">The following statements and functions generate random numbers.</paragraph></section><embed href="text/sbasic/shared/03080301.xhp#randomize"/><embed href="text/sbasic/shared/03080302.xhp#rnd"/></body></helpdocument>
PK
Mw�X�����text/sbasic/shared/01170100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Control and Dialog Properties</title><filename>/text/sbasic/shared/01170100.xhp</filename></topic></meta><body><section id="control"><bookmark branch="index" id="bm_id3153379"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/01170100.xhp">Control and Dialog Properties</link></paragraph></section><paragraph role="paragraph"><ahelp hid=".">Specifies the properties of the selected dialog or control.</ahelp> You must be in the design mode to be able to use this command.</paragraph><paragraph role="heading" level="2">Entering Data in the Properties Dialog</paragraph><paragraph role="paragraph">The following key combinations apply to enter data in multiline fields or combo boxes of the <emph>Properties</emph> dialog:</paragraph><table><tablerow><tablecell><paragraph role="tablehead">Keys</paragraph></tablecell><tablecell><paragraph role="tablehead">Effects</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Alt+Down Arrow</paragraph></tablecell><tablecell><paragraph role="paragraph">Opens a combo box</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Alt+Up Arrow</paragraph></tablecell><tablecell><paragraph role="paragraph">Closes a combo box</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Shift+Enter</paragraph></tablecell><tablecell><paragraph role="paragraph">Inserts a line break in multiline fields.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">(UpArrow)</paragraph></tablecell><tablecell><paragraph role="paragraph">Goes to the previous line.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">(DownArrow)</paragraph></tablecell><tablecell><paragraph role="paragraph">Goes to the next line.</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="paragraph">Enter</paragraph></tablecell><tablecell><paragraph role="paragraph">Applies the changes made to a field and places the cursor into the next field.</paragraph></tablecell></tablerow></table><embed href="text/sbasic/shared/01170101.xhp#allgemein"/><embed href="text/sbasic/shared/01170103.xhp#ereignisse"/></body></helpdocument>
PK
Nw�X����text/sbasic/shared/03080100.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Trigonometric Functions</title><filename>/text/sbasic/shared/03080100.xhp</filename></topic></meta><body><section id="trigo"><paragraph role="heading" level="1"><link href="text/sbasic/shared/03080100.xhp">Trigonometric Functions</link></paragraph><paragraph role="paragraph">The following are the trigonometric functions that are supported in $[officename] Basic.</paragraph></section><embed href="text/sbasic/shared/03080101.xhp#atn"/><embed href="text/sbasic/shared/03080102.xhp#cos"/><embed href="text/sbasic/shared/03080103.xhp#sin"/><embed href="text/sbasic/shared/03080104.xhp#tan"/></body></helpdocument>
PK
Nw�X z_���text/sbasic/shared/keys.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Keyboard Shortcuts in the Basic IDE</title><filename>/text/sbasic/shared/keys.xhp</filename></topic></meta><body><section id="keys"><bookmark branch="index" id="bm_id3154760"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/keys.xhp">Keyboard Shortcuts in the Basic IDE</link></paragraph></section><paragraph role="paragraph">In the Basic IDE you can use the following keyboard shortcuts:</paragraph><table><tablerow><tablecell><paragraph role="tablehead">Action</paragraph></tablecell><tablecell><paragraph role="tablehead">Keyboard shortcut</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Run code starting from the first line, or from the current breakpoint, if the program stopped there before</paragraph></tablecell><tablecell><paragraph role="tablecontent">F5</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Stop</paragraph></tablecell><tablecell><paragraph role="tablecontent">Shift+F5</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Add <link href="text/sbasic/shared/01050100.xhp">watch</link> for the variable at the cursor</paragraph></tablecell><tablecell><paragraph role="tablecontent">F7</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Single step through each statement, starting at the first line or at that statement where the program execution stopped before.</paragraph></tablecell><tablecell><paragraph role="tablecontent">F8</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Single step as with F8, but a function call is considered to be only <emph>one</emph> statement</paragraph></tablecell><tablecell><paragraph role="tablecontent">Shift+F8</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Set or remove a <link href="text/sbasic/shared/01030300.xhp">breakpoint</link> at the current line or all breakpoints in the current selection</paragraph></tablecell><tablecell><paragraph role="tablecontent">F9</paragraph></tablecell></tablerow><tablerow><tablecell><paragraph role="tablecontent">Enable/disable the breakpoint at the current line or all breakpoints in the current selection</paragraph></tablecell><tablecell><paragraph role="tablecontent">Shift+F9</paragraph></tablecell></tablerow></table><paragraph role="paragraph">A running macro can be aborted with Shift+<switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Q, also from outside of the Basic IDE. If you are inside the Basic IDE and the macro halts at a breakpoint, Shift+<switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+Q stops execution of the macro, but you can recognize this only after the next F5, F8, or Shift+F8.</paragraph></body></helpdocument>
PK
Nw�X,n:@��text/sbasic/shared/03030111.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDateToUnoDate Function [Runtime]</title><filename>/text/sbasic/shared/03030111.xhp</filename></topic></meta><body><section id="cdatetounodate"><bookmark branch="index" id="bm_id3150620"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03030111.xhp">CDateToUnoDate Function [Runtime]</link></paragraph><paragraph role="paragraph">Returns the date as a UNO com.sun.star.util.Date struct.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CDateToUnoDate</item><item type="operator">(</item><item type="identifier">aDate</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">com.sun.star.util.Date</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>aDate:</emph> Date to convert</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCDateToUnoDate</item></paragraph><paragraph role="bascode">    <item type="identifier">aDatabaseRow</item><item type="operator">.</item><item type="identifier">updateDate</item><item type="operator">(</item><item type="number">3</item><item type="operator">,</item> <item type="identifier">CDateToUnoDate</item><item type="operator">(</item><item type="identifier">Now</item><item type="operator">)</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">aDateControl</item><item type="operator">.</item><item type="keyword">Date</item> <item type="operator">=</item> <item type="identifier">CDateToUnoDate</item><item type="operator">(</item><item type="identifier">Now</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X�����text/sbasic/shared/03090203.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>While...Wend Statement[Runtime]</title><filename>/text/sbasic/shared/03090203.xhp</filename></topic></meta><body><section id="whilewend"><bookmark branch="index" id="bm_id3150400"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03090203.xhp">While...Wend Statement[Runtime]</link></paragraph><paragraph role="paragraph">When a program encounters a While statement, it tests the condition. If the condition is False, the program continues directly following the Wend statement. If the condition is True, the loop is executed until the program finds Wend and then jumps back to the<emph> While </emph>statement. If the condition is still True, the loop is executed again.</paragraph></section><paragraph role="paragraph">Unlike the <link href="text/sbasic/shared/03090201.xhp">Do...Loop</link> statement, you cannot cancel a <emph>While...Wend</emph> loop with <link href="text/sbasic/shared/03090412.xhp">Exit</link>. Never exit a While...Wend loop with <link href="text/sbasic/shared/03090302.xhp">GoTo</link>, since this can cause a run-time error.</paragraph><paragraph role="paragraph">A Do...Loop is more flexible than a While...Wend.</paragraph><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">While</item> <item type="identifier">Condition</item> <item type="identifier">[Statement]</item> <item type="keyword">Wend</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleWhileWend</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">stext</item> <item type="keyword">As</item> <item type="keyword">String</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">iRun</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode">    <item type="identifier">sText</item> <item type="operator">=</item><item type="string">"This Is a short text"</item></paragraph><paragraph role="bascode">    <item type="identifier">iRun</item> <item type="operator">=</item> <item type="number">1</item></paragraph><paragraph role="bascode">    <item type="keyword">While</item> <item type="identifier">iRun</item> <item type="operator">&lt;</item> <item type="identifier">Len</item><item type="operator">(</item><item type="identifier">sText</item><item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="keyword">If</item> <item type="identifier">Mid</item><item type="operator">(</item><item type="identifier">sText</item><item type="operator">,</item><item type="identifier">iRun</item><item type="operator">,</item><item type="number">1</item> <item type="operator">)</item><item type="operator">&lt;</item><item type="operator">&gt;</item> <item type="string">" "</item> <item type="keyword">Then</item> <item type="identifier">Mid</item><item type="operator">(</item> <item type="identifier">sText</item> <item type="operator">,</item><item type="identifier">iRun</item><item type="operator">,</item> <item type="number">1</item><item type="operator">,</item> <item type="identifier">Chr</item><item type="operator">(</item> <item type="number">1</item> <item type="operator">+</item> <item type="identifier">Asc</item><item type="operator">(</item> <item type="identifier">Mid</item><item type="operator">(</item><item type="identifier">sText</item><item type="operator">,</item><item type="identifier">iRun</item><item type="operator">,</item><item type="number">1</item> <item type="operator">)</item><item type="operator">)</item> <item type="operator">)</item></paragraph><paragraph role="bascode">        <item type="identifier">iRun</item> <item type="operator">=</item> <item type="identifier">iRun</item> <item type="operator">+</item> <item type="number">1</item></paragraph><paragraph role="bascode">    <item type="keyword">Wend</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">sText</item><item type="operator">,</item><item type="number">0</item><item type="operator">,</item><item type="string">"Text encoded"</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�X��P�	�	text/sbasic/shared/03100900.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CSng Function[Runtime]</title><filename>/text/sbasic/shared/03100900.xhp</filename></topic></meta><body><section id="csng"><bookmark branch="index" id="bm_id3153753"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100900.xhp">CSng Function[Runtime]</link></paragraph><paragraph role="paragraph">Converts any string or numeric expression to data type Single.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="identifier">CSng</item> <item type="operator">(</item><item type="identifier">Expression</item><item type="operator">)</item></paragraph></bascode><paragraph role="heading" level="2">Return value:</paragraph><paragraph role="paragraph">Single</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any string or numeric expression that you want to convert. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCSNG</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CDbl</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CInt</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CLng</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CSng</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xe�``text/sbasic/shared/03103400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Public Statement [Runtime]</title><filename>/text/sbasic/shared/03103400.xhp</filename></topic></meta><body><section id="public"><bookmark branch="index" id="bm_id3153311"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03103400.xhp">Public Statement [Runtime]</link></paragraph><paragraph role="paragraph">Dimensions a variable or an array at the module level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules.</paragraph></section><paragraph role="heading" level="2">Syntax:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Public</item> <item type="identifier">VarName</item><item type="identifier">[(start To end)]</item> <item type="identifier">[As VarType]</item><item type="identifier">[, VarName2[(start To end)]</item> <item type="identifier">[As VarType]</item><item type="identifier">[,...]</item><item type="operator">]</item></paragraph></bascode><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Public</item> <item type="identifier">iPublicVar</item> <item type="keyword">As</item> <item type="keyword">Integer</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExamplePublic</item></paragraph><paragraph role="bascode">    <item type="identifier">iPublicVar</item> <item type="operator">=</item> <item type="identifier">iPublicVar</item> <item type="operator">+</item> <item type="number">1</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">iPublicVar</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Nw�Xގ:R88text/sbasic/shared/03100400.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>CDbl Function [Runtime]</title><filename>/text/sbasic/shared/03100400.xhp</filename></topic></meta><body><section id="cdbl"><bookmark branch="index" id="bm_id3153750"/><paragraph role="heading" level="1"><link href="text/sbasic/shared/03100400.xhp">CDbl Function [Runtime]</link></paragraph><paragraph role="paragraph">Converts any numerical expression or string expression to a double type.</paragraph></section><paragraph role="heading" level="2">Syntax</paragraph><paragraph role="paragraph">CDbl (Expression)</paragraph><paragraph role="heading" level="2">Return value</paragraph><paragraph role="paragraph">Double</paragraph><paragraph role="heading" level="2">Parameters:</paragraph><paragraph role="paragraph"><emph>Expression:</emph> Any string or numeric expression that you want to convert. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.</paragraph><embed href="text/sbasic/shared/00000003.xhp#errorcode"/><embed href="text/sbasic/shared/00000003.xhp#err5"/><paragraph role="heading" level="2">Example:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">ExampleCountryConvert</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CDbl</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CInt</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">CLng</item><item type="operator">(</item><item type="number">1234.5678</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode></body></helpdocument>
PK
Mw�Xtext/sbasic/guide/PK
Mw�X�Xh��(text/sbasic/guide/control_properties.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Changing the Properties of Controls in the Dialog Editor</title><filename>/text/sbasic/guide/control_properties.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id3145786"/><paragraph role="heading" level="1"><variable id="control_properties"><link href="text/sbasic/guide/control_properties.xhp">Changing the Properties of Controls in the Dialog Editor</link></variable></paragraph><paragraph role="paragraph">You can set the properties of control that you add to a dialog. For example, you can change the color, name, and size of a button that you added. You can change most control properties when you create or edit a dialog. However, you can only change some properties at runtime.</paragraph><paragraph role="paragraph">To change the properties of a control in design mode, right-click the control, and then choose <emph>Properties</emph>.</paragraph><section id="relatedtopics"><embed href="text/sbasic/guide/create_dialog.xhp#create_dialog"/><embed href="text/sbasic/guide/insert_control.xhp#insert_control"/><embed href="text/sbasic/guide/show_dialog.xhp#show_dialog"/><embed href="text/sbasic/guide/sample_code.xhp#sample_code"/></section></body></helpdocument>
PK
Mw�X���ee#text/sbasic/guide/create_dialog.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Creating a Basic Dialog</title><filename>/text/sbasic/guide/create_dialog.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id3149346"/><paragraph role="heading" level="1"><variable id="create_dialog"><link href="text/sbasic/guide/create_dialog.xhp">Creating a Basic Dialog</link></variable></paragraph><list type="ordered"><listitem><paragraph role="listitem">Choose <emph>Tools - Macros - Organize Dialogs</emph>, and then click <emph>New</emph>.</paragraph></listitem><listitem><paragraph role="listitem">Enter a name for the dialog, and click OK. To rename the dialog later, right-click the name on the tab, and choose <emph>Rename</emph>. </paragraph></listitem><listitem><paragraph role="listitem">Click <emph>Edit</emph>. The Basic dialog editor opens and contains a blank dialog.</paragraph></listitem><listitem><paragraph role="listitem">If you do not see the <emph>Toolbox</emph> bar, click the arrow next to the <emph>Insert Controls </emph>icon to open the <emph>Toolbox</emph> bar.</paragraph></listitem><listitem><paragraph role="listitem">Click a tool and then drag in the dialog to create the control.</paragraph></listitem></list><section id="relatedtopics"><embed href="text/sbasic/guide/control_properties.xhp#control_properties"/><embed href="text/sbasic/guide/insert_control.xhp#insert_control"/><embed href="text/sbasic/guide/translation.xhp#translation"/><embed href="text/sbasic/guide/show_dialog.xhp#show_dialog"/><embed href="text/sbasic/guide/sample_code.xhp#sample_code"/></section></body></helpdocument>
PK
Mw�X*nA�KK$text/sbasic/guide/insert_control.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Creating Controls in the Dialog Editor</title><filename>/text/sbasic/guide/insert_control.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id3149182"/><paragraph role="heading" level="1"><variable id="insert_control"><link href="text/sbasic/guide/insert_control.xhp">Creating Controls in the Dialog Editor</link></variable></paragraph><paragraph role="paragraph">Use the tools on the <emph>Toolbox </emph>of the BASIC dialog editor to add controls to your dialog.</paragraph><list type="ordered"><listitem><paragraph role="listitem">To open the <emph>Toolbox</emph>, click the arrow next to the <emph>Insert Controls</emph> icon on the <emph>Macro</emph> toolbar.</paragraph></listitem><listitem><paragraph role="listitem">Click a tool on the toolbar, for example, <emph>Button</emph>.</paragraph></listitem><listitem><paragraph role="listitem">On the dialog, drag the button to the size you want.</paragraph></listitem></list><section id="relatedtopics"><embed href="text/sbasic/guide/control_properties.xhp#control_properties"/><embed href="text/sbasic/guide/create_dialog.xhp#create_dialog"/><embed href="text/sbasic/guide/show_dialog.xhp#show_dialog"/><embed href="text/sbasic/guide/sample_code.xhp#sample_code"/></section></body></helpdocument>
PK
Mw�X��=��!text/sbasic/guide/translation.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Translation of Controls in the Dialog Editor</title><filename>/text/sbasic/guide/translation.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id8915372"/><paragraph role="heading" level="1"><variable id="translation"><link href="text/sbasic/guide/translation.xhp">Translation of Controls in the Dialog Editor</link></variable></paragraph><paragraph role="paragraph">The Language toolbar in the Basic IDE dialog editor shows controls to enable and manage localizable dialogs.</paragraph><paragraph role="paragraph">By default, any dialog that you create only contains string resources for one language. You may want to create dialogs that automatically show localized strings according to the user's language settings.</paragraph><bookmark branch="hid/.uno:CurrentLanguage" id="bm_id9421979"/><paragraph role="paragraph"><ahelp hid="." visibility="hidden">Select the language for the strings that you want to edit. Click the Manage Languages icon to add languages.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/managelanguages/ManageLanguagesDialog" id="bm_id1646778"/><bookmark branch="hid/modules/BasicIDE/ui/managelanguages/treeview" id="bm_id1646778"/><paragraph role="paragraph"><ahelp hid="." visibility="hidden">Click a language, then click Default to set the language as default, or click Delete to remove the language from the list.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/managelanguages/add" id="bm_id1228370"/><paragraph role="paragraph"><ahelp hid="." visibility="hidden">Opens a dialog where you can add a language to the list.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/managelanguages/delete" id="bm_id1601611"/><paragraph role="paragraph"><ahelp hid="." visibility="hidden">Select a language in the list and click Delete to remove that language. When you remove all languages, the string resources for localizable dialogs are removed from all dialogs in the current library.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/managelanguages/default" id="bm_id733359"/><paragraph role="paragraph"><ahelp hid="." visibility="hidden">Select a language in the list and click Default to set the language as default language.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/defaultlanguage/DefaultLanguageDialog" id="bm_id879849"/><bookmark branch="hid/modules/BasicIDE/ui/defaultlanguage/entries" id="bm_id879848"/><paragraph role="paragraph"><ahelp hid="." visibility="hidden">The default language will be used as a source for all other language strings.</ahelp></paragraph><bookmark branch="hid/modules/BasicIDE/ui/defaultlanguage/checkedentries" id="bm_id8675191"/><paragraph role="paragraph"><ahelp hid="." visibility="hidden">Add UI languages for your dialog strings.</ahelp></paragraph><paragraph role="heading" level="2">To enable localizable dialogs</paragraph><list type="ordered"><listitem><paragraph role="paragraph">In the Basic IDE dialog editor, open the Language toolbar choosing <item type="menuitem">View - Toolbars - Language</item>. </paragraph><paragraph role="paragraph">If the current library already contains a localizable dialog, the Language toolbar is shown automatically.</paragraph></listitem><listitem><paragraph role="paragraph">Click the <emph>Manage Languages</emph> icon 
<image src="cmd/sc_managelanguage.png"/> on the Language toolbar or on the Toolbox bar.</paragraph><paragraph role="paragraph">You see the Manage User Interface Language dialog. The dialog manages languages for the current library. The name of the current library is shown on the title bar.</paragraph></listitem><listitem><paragraph role="paragraph">Click Add in the dialog to add a language entry. </paragraph><paragraph role="paragraph">This step enables all new dialogs to contain localizable string resources.</paragraph></listitem><listitem><paragraph role="paragraph">The first time you click Add, you see the Set Default User Interface Language dialog. The following times you click Add, this dialog has the name Add User Interface Language.</paragraph><paragraph role="paragraph">You can also change the default language in the Manage User Interface Language dialog.</paragraph></listitem><listitem><paragraph role="paragraph">Select a language. </paragraph><paragraph role="paragraph">This adds string resources to contain the translated versions of all strings to the dialog properties. The set of dialog strings of the default language is copied to the new set of strings. Later, you can switch to the new language and then translate the strings.</paragraph></listitem><listitem><paragraph role="paragraph">Close the dialog or add additional languages.</paragraph></listitem></list><paragraph role="heading" level="2">To edit localizable controls in your dialog</paragraph><paragraph role="paragraph">Once you have added the resources for localizable strings in your dialogs, you can select the current language from the Current Language listbox on the Language toolbar.</paragraph><list type="ordered"><listitem><paragraph role="paragraph">Switch the Current Language listbox to display the default language.</paragraph></listitem><listitem><paragraph role="paragraph">Insert any number of controls to your dialog and enter all strings you want.</paragraph></listitem><listitem><paragraph role="paragraph">Select another language in the Current Language listbox.</paragraph></listitem><listitem><paragraph role="paragraph">Using the control's property dialogs, edit all strings to the other language.</paragraph></listitem><listitem><paragraph role="paragraph">Repeat for all languages that you added.</paragraph></listitem></list><paragraph role="paragraph">The user of your dialog will see the strings of the user interface language of the user's version of %PRODUCTNAME, if you did provide strings in that language. </paragraph><paragraph role="paragraph">If no language matches the user's version, the user will see the default language strings. </paragraph><paragraph role="paragraph">If the user has an older version of %PRODUCTNAME that does not know localizable string resources for Basic dialogs, the user will see the default language strings.</paragraph><section id="relatedtopics"><embed href="text/sbasic/guide/create_dialog.xhp#create_dialog"/><embed href="text/sbasic/guide/insert_control.xhp#insert_control"/><embed href="text/sbasic/guide/show_dialog.xhp#show_dialog"/><embed href="text/sbasic/guide/sample_code.xhp#sample_code"/></section></body></helpdocument>
PK
Mw�X�e����!text/sbasic/guide/access2base.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Access2Base</title><filename>/text/sbasic/guide/access2base.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_idA2B001"/><paragraph role="heading" level="1">Access2Base</paragraph><paragraph role="heading" level="2">What is Access2Base ?</paragraph><paragraph role="paragraph">Access2Base is a LibreOffice Basic library of macros for (business or personal) application developers and advanced users. It is one of the libraries stored in "LibreOffice macros and dialogs".</paragraph><paragraph role="paragraph">The provided macros implement functionalities, all directly inspired by Microsoft Access. The macros are callable from a LibreOffice <emph>Base</emph> application only.</paragraph><paragraph role="paragraph">The API provided by Access2Base is intended to be more concise, intuitive and easy to learn than the standard UNO API (API = Application Programming Interface).</paragraph><paragraph role="warning"><emph>The library is documented online on </emph><link href="http://www.access2base.com"><emph>http://www.access2base.com</emph></link></paragraph><paragraph role="heading" level="2">The implemented macros include:</paragraph><list type="ordered" format="1"><listitem><paragraph role="listitem">a simplified and extensible API for <emph>forms</emph>, <emph>dialogs</emph> and <emph>controls</emph> manipulations similar with the MSAccess object model</paragraph></listitem><listitem><paragraph role="listitem">an API for database access with the <emph>table</emph>, <emph>query</emph>, <emph>recordset</emph> and <emph>field</emph> objects</paragraph></listitem><listitem><paragraph role="listitem">a number of <emph>actions</emph> with a syntax identical to their corresponding MSAccess macros/actions</paragraph></listitem><listitem><paragraph role="listitem">the <emph>DLookup</emph>, <emph>DSum</emph>, ... database functions</paragraph></listitem><listitem><paragraph role="listitem">the support of the shortcut notations like <item type="literal">Forms!myForm!myControl</item></paragraph></listitem></list><paragraph role="paragraph">+</paragraph><list type="ordered" format="1" startwith="6"><listitem><paragraph role="listitem">a consistent errors and exceptions handler</paragraph></listitem><listitem><paragraph role="listitem">facilities for programming form, dialog and control <emph>events</emph></paragraph></listitem><listitem><paragraph role="listitem">the support of both embedded forms and standalone (Writer) forms</paragraph></listitem></list><paragraph role="heading" level="2">Compare Access2Base with MSAccess VBA</paragraph><bascode><paragraph role="bascode"><item type="comment">REM Open a form ... </item></paragraph><paragraph role="bascode">          <item type="identifier">OpenForm</item><item type="operator">(</item><item type="string">"myForm"</item><item type="operator">)</item> </paragraph><paragraph role="bascode"><item type="comment">REM Move a form to new left-top coordinates ... </item></paragraph><paragraph role="bascode">          <item type="keyword">Dim</item> <item type="identifier">ofForm</item> <item type="keyword">As</item> <item type="keyword">Object</item>		<item type="comment">' In VBA =&gt;		Dim ofForm As Form </item></paragraph><paragraph role="bascode">          <item type="keyword">Set</item> <item type="identifier">ofForm</item> <item type="operator">=</item> <item type="identifier">Forms</item><item type="operator">(</item><item type="string">"myForm"</item><item type="operator">)</item> </paragraph><paragraph role="bascode">          <item type="identifier">ofForm</item><item type="operator">.</item><item type="identifier">Move</item><item type="operator">(</item><item type="number">100</item><item type="operator">,</item> <item type="number">200</item><item type="operator">)</item> </paragraph><paragraph role="bascode"><item type="comment">REM Get the value of a control ... </item></paragraph><paragraph role="bascode">          <item type="keyword">Dim</item> <item type="identifier">ocControl</item> <item type="keyword">As</item> <item type="keyword">Object</item> </paragraph><paragraph role="bascode">          <item type="identifier">ocControl</item> <item type="operator">=</item> <item type="identifier">ofForm</item><item type="operator">.</item><item type="identifier">Controls</item><item type="operator">(</item><item type="string">"myControl"</item><item type="operator">)</item> </paragraph><paragraph role="bascode">          <item type="identifier">MsgBox</item> <item type="identifier">ocControl</item><item type="operator">.</item><item type="identifier">Value</item> </paragraph><paragraph role="bascode"><item type="comment">REM Hide a control ... </item></paragraph><paragraph role="bascode">          <item type="identifier">ocControl</item><item type="operator">.</item><item type="identifier">Visible</item> <item type="operator">=</item> <item type="identifier">False</item> </paragraph><paragraph role="bascode"><item type="comment">REM ... or alternatively ... </item></paragraph><paragraph role="bascode">          <item type="identifier">setValue</item><item type="operator">(</item><item type="string">"Forms!myForm!myControl.Visible"</item><item type="operator">,</item> <item type="identifier">False</item><item type="operator">)</item>	<item type="comment">'    Shortcut notation </item></paragraph><paragraph role="bascode">			<item type="comment">' In VBA =&gt; 	Forms!myForm!myControl.Visible = False </item></paragraph></bascode></body></helpdocument>
PK
Mw�X���8�8!text/sbasic/guide/sample_code.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Programming Examples for Controls in the Dialog Editor</title><filename>/text/sbasic/guide/sample_code.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id3155338"/><paragraph role="heading" level="1"><variable id="sample_code"><link href="text/sbasic/guide/sample_code.xhp">Programming Examples for Controls in the Dialog Editor</link></variable></paragraph><paragraph role="paragraph">The following examples are for a new <link href="text/sbasic/guide/create_dialog.xhp">dialog</link> called "Dialog1". Use the tools on the <emph>Toolbox</emph> bar in the dialog editor to create the dialog and add the following controls: a <emph>Check Box</emph> called "CheckBox1", a <emph>Label Field</emph> called "Label1", a <emph>Button</emph> called "CommandButton1", and a <emph>List Box</emph> called "ListBox1".</paragraph><paragraph role="warning">Be consistent with uppercase and lowercase letter when you attach a control to an object variable.</paragraph><paragraph role="heading" level="3">Global Function for Loading Dialogs</paragraph><bascode><paragraph role="bascode"><item type="keyword">Function</item> <item type="identifier">LoadDialog</item><item type="operator">(</item><item type="identifier">Libname</item> <item type="keyword">as</item> <item type="keyword">String</item><item type="operator">,</item> <item type="identifier">DialogName</item> <item type="keyword">as</item> <item type="keyword">String</item><item type="operator">,</item> <item type="keyword">Optional</item> <item type="identifier">oLibContainer</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">oLib</item> <item type="keyword">as</item> <item type="keyword">Object</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">oLibDialog</item> <item type="keyword">as</item> <item type="keyword">Object</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">oRuntimeDialog</item> <item type="keyword">as</item> <item type="keyword">Object</item></paragraph><paragraph role="bascode">    <item type="keyword">If</item> <item type="identifier">IsMissing</item><item type="operator">(</item><item type="identifier">oLibContainer</item><item type="operator">)</item> <item type="keyword">Then</item></paragraph><paragraph role="bascode">        <item type="identifier">oLibContainer</item> <item type="operator">=</item> <item type="identifier">DialogLibraries</item></paragraph><paragraph role="bascode">    <item type="keyword">End</item> <item type="keyword">If</item></paragraph><paragraph role="bascode">    <item type="identifier">oLibContainer</item><item type="operator">.</item><item type="identifier">LoadLibrary</item><item type="operator">(</item><item type="identifier">LibName</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oLib</item> <item type="operator">=</item> <item type="identifier">oLibContainer</item><item type="operator">.</item><item type="identifier">GetByName</item><item type="operator">(</item><item type="identifier">Libname</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oLibDialog</item> <item type="operator">=</item> <item type="identifier">oLib</item><item type="operator">.</item><item type="identifier">GetByName</item><item type="operator">(</item><item type="identifier">DialogName</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oRuntimeDialog</item> <item type="operator">=</item> <item type="identifier">CreateUnoDialog</item><item type="operator">(</item><item type="identifier">oLibDialog</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">LoadDialog</item><item type="operator">(</item><item type="operator">)</item> <item type="operator">=</item> <item type="identifier">oRuntimeDialog</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Function</item></paragraph></bascode><paragraph role="heading" level="3">Displaying a Dialog</paragraph><bascode><paragraph role="bascode"><item type="comment">REM global definition of variables</item></paragraph><paragraph role="bascode"><item type="keyword">Dim</item> <item type="identifier">oDialog1</item> <item type="keyword">AS</item> <item type="keyword">Object</item></paragraph><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">StartDialog1</item></paragraph><paragraph role="bascode">    <item type="identifier">BasicLibraries</item><item type="operator">.</item><item type="identifier">LoadLibrary</item><item type="operator">(</item><item type="string">"Tools"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item> <item type="operator">=</item> <item type="identifier">LoadDialog</item><item type="operator">(</item><item type="string">"Standard"</item><item type="operator">,</item> <item type="string">"Dialog1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">Execute</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="heading" level="3">Read or Edit Properties of Controls in the Program</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Sample1</item></paragraph><paragraph role="bascode">    <item type="identifier">BasicLibraries</item><item type="operator">.</item><item type="identifier">LoadLibrary</item><item type="operator">(</item><item type="string">"Tools"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item> <item type="operator">=</item> <item type="identifier">LoadDialog</item><item type="operator">(</item><item type="string">"Standard"</item><item type="operator">,</item> <item type="string">"Dialog1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="comment">REM get dialog model</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1Model</item> <item type="operator">=</item> <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">Model</item></paragraph><paragraph role="bascode">    <item type="comment">REM display text of Label1</item></paragraph><paragraph role="bascode">    <item type="identifier">oLabel1</item> <item type="operator">=</item> <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">GetControl</item><item type="operator">(</item><item type="string">"Label1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">oLabel1</item><item type="operator">.</item><item type="keyword">Text</item></paragraph><paragraph role="bascode">    <item type="comment">REM set new text for control Label1</item></paragraph><paragraph role="bascode">    <item type="identifier">oLabel1</item><item type="operator">.</item><item type="keyword">Text</item> <item type="operator">=</item> <item type="string">"New Files"</item></paragraph><paragraph role="bascode">    <item type="comment">REM display model properties for the control CheckBox1</item></paragraph><paragraph role="bascode">    <item type="identifier">oCheckBox1Model</item> <item type="operator">=</item> <item type="identifier">oDialog1Model</item><item type="operator">.</item><item type="identifier">CheckBox1</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">oCheckBox1Model</item><item type="operator">.</item><item type="identifier">Dbg_Properties</item></paragraph><paragraph role="bascode">    <item type="comment">REM set new state for CheckBox1 for model of control</item></paragraph><paragraph role="bascode">    <item type="identifier">oCheckBox1Model</item><item type="operator">.</item><item type="identifier">State</item> <item type="operator">=</item> <item type="number">1</item></paragraph><paragraph role="bascode">    <item type="comment">REM display model properties for control CommandButton1</item></paragraph><paragraph role="bascode">    <item type="identifier">oCMD1Model</item> <item type="operator">=</item> <item type="identifier">oDialog1Model</item><item type="operator">.</item><item type="identifier">CommandButton1</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">oCMD1Model</item><item type="operator">.</item><item type="identifier">Dbg_Properties</item></paragraph><paragraph role="bascode">    <item type="comment">REM display properties of control CommandButton1</item></paragraph><paragraph role="bascode">    <item type="identifier">oCMD1</item> <item type="operator">=</item> <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">GetControl</item><item type="operator">(</item><item type="string">"CommandButton1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">MsgBox</item> <item type="identifier">oCMD1</item><item type="operator">.</item><item type="identifier">Dbg_Properties</item></paragraph><paragraph role="bascode">    <item type="comment">REM execute dialog</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">Execute</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="heading" level="3">Add an Entry to a ListBox</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">AddEntry</item></paragraph><paragraph role="bascode">    <item type="identifier">BasicLibraries</item><item type="operator">.</item><item type="identifier">LoadLibrary</item><item type="operator">(</item><item type="string">"Tools"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item> <item type="operator">=</item> <item type="identifier">LoadDialog</item><item type="operator">(</item><item type="string">"Standard"</item><item type="operator">,</item> <item type="string">"Dialog1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="comment">REM adds a new entry to the ListBox</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1Model</item> <item type="operator">=</item> <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">Model</item></paragraph><paragraph role="bascode">    <item type="identifier">oListBox</item> <item type="operator">=</item> <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">GetControl</item><item type="operator">(</item><item type="string">"ListBox1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="keyword">Dim</item> <item type="identifier">iCount</item> <item type="keyword">as</item> <item type="keyword">integer</item></paragraph><paragraph role="bascode">    <item type="identifier">iCount</item> <item type="operator">=</item> <item type="identifier">oListbox</item><item type="operator">.</item><item type="identifier">ItemCount</item></paragraph><paragraph role="bascode">    <item type="identifier">oListbox</item><item type="operator">.</item><item type="identifier">additem</item><item type="operator">(</item><item type="string">"New Item"</item> <item type="operator">&amp;</item> <item type="identifier">iCount</item><item type="operator">,</item><item type="number">0</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="heading" level="3">Remove an Entry from a ListBox</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">RemoveEntry</item></paragraph><paragraph role="bascode">    <item type="identifier">BasicLibraries</item><item type="operator">.</item><item type="identifier">LoadLibrary</item><item type="operator">(</item><item type="string">"Tools"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item> <item type="operator">=</item> <item type="identifier">LoadDialog</item><item type="operator">(</item><item type="string">"Standard"</item><item type="operator">,</item> <item type="string">"Dialog1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="comment">REM remove the first entry from the ListBox</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1Model</item> <item type="operator">=</item> <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">Model</item></paragraph><paragraph role="bascode">    <item type="identifier">oListBox</item> <item type="operator">=</item> <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">GetControl</item><item type="operator">(</item><item type="string">"ListBox1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oListbox</item><item type="operator">.</item><item type="identifier">removeitems</item><item type="operator">(</item><item type="number">0</item><item type="operator">,</item><item type="number">1</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><section id="relatedtopics"><embed href="text/sbasic/guide/control_properties.xhp#control_properties"/><embed href="text/sbasic/guide/create_dialog.xhp#create_dialog"/><embed href="text/sbasic/guide/insert_control.xhp#insert_control"/><embed href="text/sbasic/guide/show_dialog.xhp#show_dialog"/></section></body></helpdocument>
PK
Mw�Xy�T�
�
!text/sbasic/guide/show_dialog.xhp<?xml version="1.0" encoding="utf-8"?>
<helpdocument version="1.0"><meta><topic><title>Opening a Dialog With Program Code</title><filename>/text/sbasic/guide/show_dialog.xhp</filename></topic></meta><body><bookmark branch="index" id="bm_id3154140"/><paragraph role="heading" level="1"><variable id="show_dialog"><link href="text/sbasic/guide/show_dialog.xhp">Opening a Dialog With Program Code</link></variable></paragraph><paragraph role="paragraph">In the <item type="productname">%PRODUCTNAME</item> BASIC window for a dialog that you created, leave the dialog editor by clicking the name tab of the Module that the dialog is assigned to. The name tab is at the bottom of the window.</paragraph><paragraph role="paragraph">Enter the following code for a subroutine called <emph>Dialog1Show</emph>. In this example, the name of the dialog that you created is "Dialog1":</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Dialog1Show</item></paragraph><paragraph role="bascode">    <item type="identifier">BasicLibraries</item><item type="operator">.</item><item type="identifier">LoadLibrary</item><item type="operator">(</item><item type="string">"Tools"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item> <item type="operator">=</item> <item type="identifier">LoadDialog</item><item type="operator">(</item><item type="string">"Standard"</item><item type="operator">,</item> <item type="string">"Dialog1"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">Execute</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="paragraph">Without using "LoadDialog" you can call the code as follows:</paragraph><bascode><paragraph role="bascode"><item type="keyword">Sub</item> <item type="identifier">Dialog1Show</item></paragraph><paragraph role="bascode">    <item type="identifier">DialogLibraries</item><item type="operator">.</item><item type="identifier">LoadLibrary</item><item type="operator">(</item><item type="string">"Standard"</item><item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item> <item type="operator">=</item> <item type="identifier">CreateUnoDialog</item><item type="operator">(</item> <item type="identifier">DialogLibraries</item><item type="operator">.</item><item type="identifier">Standard</item><item type="operator">.</item><item type="identifier">Dialog1</item> <item type="operator">)</item></paragraph><paragraph role="bascode">    <item type="identifier">oDialog1</item><item type="operator">.</item><item type="identifier">Execute</item><item type="operator">(</item><item type="operator">)</item></paragraph><paragraph role="bascode"><item type="keyword">End</item> <item type="keyword">Sub</item></paragraph></bascode><paragraph role="paragraph">When you execute this code, "Dialog1" opens. To close the dialog, click the close button (x) on its title bar.</paragraph><section id="relatedtopics"><embed href="text/sbasic/guide/control_properties.xhp#control_properties"/><embed href="text/sbasic/guide/create_dialog.xhp#create_dialog"/><embed href="text/sbasic/guide/insert_control.xhp#insert_control"/><embed href="text/sbasic/guide/sample_code.xhp#sample_code"/></section></body></helpdocument>
PK
Mw�X�Atext/sbasic/PK
Nw�X�A*text/sbasic/shared/PK
Nw�XQ�,�bb��[text/sbasic/shared/03020410.xhpPK
Mw�Xc��
�
���text/sbasic/shared/01050000.xhpPK
Nw�X���mm���text/sbasic/shared/03104000.xhpPK
Nw�Xqh� aa���text/sbasic/shared/03120300.xhpPK
Nw�XN�^D����9text/sbasic/shared/03030200.xhpPK
Nw�X��i9	9	��i!text/sbasic/shared/03090407.xhpPK
Nw�X};|U�����*text/sbasic/shared/03030203.xhpPK
Mw�X�A�/text/sbasic/shared/02/PK
Mw�Xə/Zkk"��-0text/sbasic/shared/02/11140000.xhpPK
Mw�X��`"���4text/sbasic/shared/02/11080000.xhpPK
Mw�X�&����"��0:text/sbasic/shared/02/11040000.xhpPK
Mw�X�WW"��=>text/sbasic/shared/02/11150000.xhpPK
Mw�XFhoU%%"���Atext/sbasic/shared/02/11030000.xhpPK
Mw�X�iS@��"��9Etext/sbasic/shared/02/11020000.xhpPK
Mw�X��"��)Itext/sbasic/shared/02/11070000.xhpPK
Mw�X�����"��~Ntext/sbasic/shared/02/11010000.xhpPK
Mw�X*�.hh"��xRtext/sbasic/shared/02/11160000.xhpPK
Mw�X�-����"�� Vtext/sbasic/shared/02/11060000.xhpPK
Mw�X�KU��"��[text/sbasic/shared/02/11120000.xhpPK
Mw�X��x�.�."��2_text/sbasic/shared/02/20000000.xhpPK
Mw�X�)��@@"��k�text/sbasic/shared/02/11100000.xhpPK
Mw�X�=�m��"���text/sbasic/shared/02/11110000.xhpPK
Mw�X�Xf��"����text/sbasic/shared/02/11050000.xhpPK
Mw�XI��	�	"����text/sbasic/shared/02/11180000.xhpPK
Mw�X�\:;;"����text/sbasic/shared/02/11190000.xhpPK
Mw�Xx6���"��
�text/sbasic/shared/02/11090000.xhpPK
Mw�X��G���"��<�text/sbasic/shared/02/11170000.xhpPK
Nw�X��Q�
�
��P�text/sbasic/shared/03100700.xhpPK
Nw�X=�<kUU��\�text/sbasic/shared/03080802.xhpPK
Nw�X�D�������text/sbasic/shared/03103200.xhpPK
Nw�XJ��������text/sbasic/shared/03131500.xhpPK
Nw�X�#�
�
��%�text/sbasic/shared/03080202.xhpPK
Mw�X��x����_�text/sbasic/shared/01020500.xhpPK
Nw�X�J�����3�text/sbasic/shared/03120201.xhpPK
Nw�X6�Ⱦ���5�text/sbasic/shared/03020409.xhpPK
Nw�Xp%,����0text/sbasic/shared/03050500.xhpPK
Nw�X�������i$text/sbasic/shared/03090403.xhpPK
Mw�XUHw..��I3text/sbasic/shared/03020104.xhpPK
Nw�X����jj���Ftext/sbasic/shared/03080200.xhpPK
Nw�X�Y�HH��[Itext/sbasic/shared/03030205.xhpPK
Nw�X�DJ]aa���]text/sbasic/shared/03090412.xhpPK
Nw�XW-1��'�'��~ztext/sbasic/shared/03120314.xhpPK
Nw�X_������text/sbasic/shared/03020408.xhpPK
Nw�X���������text/sbasic/shared/03130500.xhpPK
Nw�X|���22���text/sbasic/shared/03102600.xhpPK
Nw�Xq��8����\�text/sbasic/shared/03132400.xhpPK
Nw�X�u��qq��|�text/sbasic/shared/03090100.xhpPK
Mw�XZ��S��*�text/sbasic/shared/01000000.xhpPK
Nw�X��������z�text/sbasic/shared/03080600.xhpPK
Nw�X�sٔ�	�	����text/sbasic/shared/03120302.xhpPK
Nw�X��
BB��[�text/sbasic/shared/03080800.xhpPK
Nw�X��d-������text/sbasic/shared/03103000.xhpPK
Nw�X�Wn������text/sbasic/shared/03020407.xhpPK
Nw�X��ư�����text/sbasic/shared/03030300.xhpPK
Mw�Xb�3������text/sbasic/shared/03020101.xhpPK
Mw�Xq��lVV��text/sbasic/shared/03020200.xhpPK
Nw�X[H�Zgg���text/sbasic/shared/03090400.xhpPK
Nw�XaC������=text/sbasic/shared/03030114.xhpPK
Nw�Xm��kk��D$text/sbasic/shared/03130000.xhpPK
Nw�X.#߽55���*text/sbasic/shared/03060300.xhpPK
Nw�X��2��	�	��^>text/sbasic/shared/03102700.xhpPK
Nw�X+GL$33��{Htext/sbasic/shared/03030206.xhpPK
Nw�Xco�p�
�
���ctext/sbasic/shared/03070600.xhpPK
Nw�X;u�� � ���ntext/sbasic/shared/05060700.xhpPK
Nw�X~���##����text/sbasic/shared/03090402.xhpPK
Mw�Xr��0������text/sbasic/shared/03010000.xhpPK
Nw�X�	�uu���text/sbasic/shared/03120306.xhpPK
Nw�X�	�������text/sbasic/shared/03090411.xhpPK
Mw�X��Y
Y
��[�text/sbasic/shared/01010210.xhpPK
Nw�XrbUm������text/sbasic/shared/03030107.xhpPK
Nw�X�值"#"#����text/sbasic/shared/03132000.xhpPK
Mw�X@��bZZ��
�text/sbasic/shared/01050100.xhpPK
Nw�X$6b�

����text/sbasic/shared/03020403.xhpPK
Nw�X䜉)�����	text/sbasic/shared/03103700.xhpPK
Mw�X��9������text/sbasic/shared/03020204.xhpPK
Nw�Xµ�*##��1text/sbasic/shared/03090302.xhpPK
Nw�X+�v�EE��b8text/sbasic/shared/03090200.xhpPK
Nw�X���66���:text/sbasic/shared/03030000.xhpPK
Nw�X�C��//��W@text/sbasic/shared/03080103.xhpPK
Mw�X#y2$�����Ptext/sbasic/shared/03010300.xhpPK
Mw�X�"e���Stext/sbasic/shared/03020303.xhpPK
Nw�Xb�22��otext/sbasic/shared/03120200.xhpPK
Nw�XL�����}qtext/sbasic/shared/03090000.xhpPK
Nw�XU�I_tt��kvtext/sbasic/shared/03050200.xhpPK
Nw�X��L3BB���text/sbasic/shared/03090300.xhpPK
Nw�X(3Po

����text/sbasic/shared/03020412.xhpPK
Nw�XE?�����W�text/sbasic/shared/03120303.xhpPK
Nw�X�f4b
b
����text/sbasic/shared/03080201.xhpPK
Mw�X[<����'�text/sbasic/shared/03020203.xhpPK
Nw�XHv��������text/sbasic/shared/03030130.xhpPK
Nw�XH�~����text/sbasic/shared/03132300.xhpPK
Nw�X�@�&����j�text/sbasic/shared/03104500.xhpPK
Nw�XGeuF����text/sbasic/shared/main0211.xhpPK
Nw�X��	k
k
!���text/sbasic/shared/code-stubs.xhpPK
Nw�X�|�H�
�
���text/sbasic/shared/03101300.xhpPK
Nw�X�bSN��Xtext/sbasic/shared/03120308.xhpPK
Nw�X��������)text/sbasic/shared/03030204.xhpPK
Nw�X5�Z�xx���2text/sbasic/shared/03103450.xhpPK
Nw�X�+lXX���:text/sbasic/shared/03020402.xhpPK
Mw�XҚAC����%Ctext/sbasic/shared/03010101.xhpPK
Nw�X\�G

��	Vtext/sbasic/shared/03090409.xhpPK
Nw�XG+�Lj���P]text/sbasic/shared/03030115.xhpPK
Nw�X��s)''��etext/sbasic/shared/03131300.xhpPK
Nw�X2j:P����yltext/sbasic/shared/03090101.xhpPK
Mw�X܇]M=+=+��w�text/sbasic/shared/01020300.xhpPK
Nw�X�6=�����text/sbasic/shared/03090201.xhpPK
Nw�X�HP�N
N
����text/sbasic/shared/03070300.xhpPK
Nw�XH�������@�text/sbasic/shared/03132500.xhpPK
Nw�Xp˭'����@�text/sbasic/shared/03030202.xhpPK
Nw�X{,�(NN���text/sbasic/shared/03080101.xhpPK
Nw�X���|{
{
����text/sbasic/shared/03090401.xhpPK
Nw�X�t�ZXX��R�text/sbasic/shared/03102450.xhpPK
Mw�X(��J�����text/sbasic/shared/01050200.xhpPK
Mw�X?�_�����text/sbasic/shared/01030300.xhpPK
Nw�X��
8aa���text/sbasic/shared/03120307.xhpPK
Nw�XF����
�
��z&text/sbasic/shared/03101100.xhpPK
Nw�X�	Ń]]��L1text/sbasic/shared/03030103.xhpPK
Nw�X�l0DD���<text/sbasic/shared/03080302.xhpPK
Mw�X(@�/����gMtext/sbasic/shared/03010100.xhpPK
Mw�XwԆ���-Ptext/sbasic/shared/03020202.xhpPK
Nw�X�8�q��votext/sbasic/shared/03090301.xhpPK
Nw�X�	u����˅text/sbasic/shared/03090102.xhpPK
Nw�Xz9�mm����text/sbasic/shared/03080801.xhpPK
Nw�X ,�99��I�text/sbasic/shared/03020305.xhpPK
Nw�X��U��$�$����text/sbasic/shared/03103600.xhpPK
Nw�X�|�	�	����text/sbasic/shared/03130700.xhpPK
Nw�X�d\������text/sbasic/shared/03020304.xhpPK
Nw�X4fk ..��%�text/sbasic/shared/03120101.xhpPK
Nw�X<��**����text/sbasic/shared/03030120.xhpPK
Nw�X���q
q
���text/sbasic/shared/03100000.xhpPK
Nw�XH^K0�����text/sbasic/shared/03103800.xhpPK
Nw�X0�i''���text/sbasic/shared/03090103.xhpPK
Nw�XټF  ��1!text/sbasic/shared/03120301.xhpPK
Nw�X�T��((��tAtext/sbasic/shared/03120315.xhpPK
Nw�XN�eY\\���Gtext/sbasic/shared/03120103.xhpPK
Mw�X]��@@��rStext/sbasic/shared/03010305.xhpPK
Nw�X EP�����dtext/sbasic/shared/03103300.xhpPK
Mw�X��{�f�f���mtext/sbasic/shared/01170101.xhpPK
Mw�X��AA����text/sbasic/shared/03020301.xhpPK
Mw�X��U�8	8	�� �text/sbasic/shared/01050300.xhpPK
Mw�X+�kgg����text/sbasic/shared/03010304.xhpPK
Mw�X@�OG��9text/sbasic/shared/03010302.xhpPK
Nw�XTr�Q�	�	��xtext/sbasic/shared/03100500.xhpPK
Nw�X��  ��Z!text/sbasic/shared/03110100.xhpPK
Nw�X�Bʃ�����1text/sbasic/shared/03102900.xhpPK
Mw�X��F

���Dtext/sbasic/shared/01170103.xhpPK
Mw�XWڨ�LL���Rtext/sbasic/shared/03020100.xhpPK
Mw�X������zUtext/sbasic/shared/03020000.xhpPK
Nw�X�N�kk���Ytext/sbasic/shared/03050300.xhpPK
Nw�Xj��	�	��^_text/sbasic/shared/03100600.xhpPK
Mw�X+Ǽ���eitext/sbasic/shared/01020000.xhpPK
Nw�X,�Ϫ�����ltext/sbasic/shared/03103100.xhpPK
Nw�X��`dqq��uttext/sbasic/shared/03020401.xhpPK
Nw�X���jj��#�text/sbasic/shared/03102400.xhpPK
Mw�Xd�"�����ʈtext/sbasic/shared/03010301.xhpPK
Nw�X���i�����text/sbasic/shared/03020413.xhpPK
Nw�X�H�((��:�text/sbasic/shared/03131400.xhpPK
Mw�X�2v����text/sbasic/shared/01040000.xhpPK
Nw�X1O�xx����text/sbasic/shared/03030301.xhpPK
Nw�XXǶn������text/sbasic/shared/03090406.xhpPK
Nw�Xk�o����text/sbasic/shared/03080700.xhpPK
Nw�XA�s}������text/sbasic/shared/03080501.xhpPK
Nw�X3S�fjj����text/sbasic/shared/03070500.xhpPK
Nw�XIM/��
�
����text/sbasic/shared/03120102.xhpPK
Nw�X,�g����ytext/sbasic/shared/03030116.xhpPK
Mw�X�g�TUU��K
text/sbasic/shared/03010103.xhpPK
Nw�X9
e�
�
���"text/sbasic/shared/03102000.xhpPK
Mw�X"S���.text/sbasic/shared/03010200.xhpPK
Nw�X�h�%%��l0text/sbasic/shared/03100100.xhpPK
Nw�X��
�
�
���Atext/sbasic/shared/03130800.xhpPK
Mw�X����dd��Mtext/sbasic/shared/01030000.xhpPK
Nw�X\�7s�����Ptext/sbasic/shared/03030112.xhpPK
Nw�Xf������Ytext/sbasic/shared/03120202.xhpPK
Mw�Xv�������ftext/sbasic/shared/03020102.xhpPK
Nw�X|YᏒ����|text/sbasic/shared/03080701.xhpPK
Mw�X"�D�K�K����text/sbasic/shared/01020100.xhpPK
Nw�X��[�������text/sbasic/shared/03030113.xhpPK
Nw�X��P�����k�text/sbasic/shared/03060000.xhpPK
Nw�X�i�m��X�text/sbasic/shared/03100070.xhpPK
Nw�Xw#C�-
-
����text/sbasic/shared/03102300.xhpPK
Nw�Xh2���
�
���text/sbasic/shared/03030104.xhpPK
Nw�Xy��6�	�	���text/sbasic/shared/03030102.xhpPK
Nw�X��n@���	text/sbasic/shared/03102800.xhpPK
Mw�X�A
	text/sbasic/shared/01/PK
Mw�X����"��?
	text/sbasic/shared/01/06130500.xhpPK
Mw�X *���"��J	text/sbasic/shared/01/06130100.xhpPK
Mw�Xi�1;;"��	text/sbasic/shared/01/06130000.xhpPK
Nw�X	+�ww���*	text/sbasic/shared/03080502.xhpPK
Nw�XQ~�fBB��N3	text/sbasic/shared/03020414.xhpPK
Nw�X��E)
)
���E	text/sbasic/shared/03030106.xhpPK
Mw�XV
w����3P	text/sbasic/shared/01030100.xhpPK
Nw�X�=������"V	text/sbasic/shared/03104400.xhpPK
Nw�XF���jj��?]	text/sbasic/shared/03030201.xhpPK
Nw�X�������d	text/sbasic/shared/03080301.xhpPK
Nw�X��I2�����z	text/sbasic/shared/03090408.xhpPK
Mw�XbR�nTT���	text/sbasic/shared/03020103.xhpPK
Nw�X�1Z��	�	��y�	text/sbasic/shared/03132200.xhpPK
Nw�X[�^���V�	text/sbasic/shared/03110000.xhpPK
Nw�Xt�������	text/sbasic/shared/03030303.xhpPK
Mw�X��PWW��˸	text/sbasic/shared/01020200.xhpPK
Nw�X| Ȣ**��_�	text/sbasic/shared/03030110.xhpPK
Mw�X	J������	text/sbasic/shared/03020205.xhpPK
Nw�XC�H
������	text/sbasic/shared/03120311.xhpPK
Mw�XG�D4������	text/sbasic/shared/03010201.xhpPK
Nw�X�}T������
text/sbasic/shared/03120104.xhpPK
Mw�X\ߗ�PP���

text/sbasic/shared/03020302.xhpPK
Nw�XcU3j����p
text/sbasic/shared/03090303.xhpPK
Nw�X8�]�y
y
���&
text/sbasic/shared/03101400.xhpPK
Nw�X��1::��A1
text/sbasic/shared/03050100.xhpPK
Nw�X������@
text/sbasic/shared/03060200.xhpPK
Nw�X��Σ.
.
���S
text/sbasic/shared/03070400.xhpPK
Nw�X��_z
z
��Y^
text/sbasic/shared/03101600.xhpPK
Nw�X��D����i
text/sbasic/shared/03120100.xhpPK
Nw�X~*�	�	��?l
text/sbasic/shared/03020415.xhpPK
Nw�X%cD
D
��!v
text/sbasic/shared/03103900.xhpPK
Nw�XRB!II����
text/sbasic/shared/03120305.xhpPK
Nw�X�ih�00��(�
text/sbasic/shared/03131800.xhpPK
Mw�Xo�|�������
text/sbasic/shared/03010303.xhpPK
Nw�XYb�ff��˪
text/sbasic/shared/03100050.xhpPK
Nw�X-�
o�
�
��n�
text/sbasic/shared/03120403.xhpPK
Nw�Xj�

����
text/sbasic/shared/03080102.xhpPK
Mw�X=F�h66����
text/sbasic/shared/01030200.xhpPK
Nw�X��Qhh��Y�
text/sbasic/shared/03080000.xhpPK
Nw�Xm��~~����
text/sbasic/shared/03120304.xhpPK
Nw�X�Uf66����
text/sbasic/shared/03100080.xhpPK
Nw�X���!!��,text/sbasic/shared/03100060.xhpPK
Nw�XŖ��EE���text/sbasic/shared/03080401.xhpPK
Nw�X��ͨ����
text/sbasic/shared/03060100.xhpPK
Nw�X��ұ,,��� text/sbasic/shared/03102200.xhpPK
Nw�X�hU�
�
��:)text/sbasic/shared/03090405.xhpPK
Nw�Xb�@����04text/sbasic/shared/03070000.xhpPK
Nw�X�����G8text/sbasic/shared/03120000.xhpPK
Nw�X� �����;text/sbasic/shared/03104600.xhpPK
Nw�X��oo��tBtext/sbasic/shared/03120105.xhpPK
Nw�XXQd���� Gtext/sbasic/shared/03060600.xhpPK
Nw�X:�YY��IZtext/sbasic/shared/03132100.xhpPK
Nw�X�n@�::���`text/sbasic/shared/03080104.xhpPK
Nw�XbY��K
K
��Vqtext/sbasic/shared/03070200.xhpPK
Nw�X�jan77���{text/sbasic/shared/03120402.xhpPK
Mw�X{�U�<<��R�text/sbasic/shared/03020201.xhpPK
Nw�X��Bqvv��ˡtext/sbasic/shared/03030105.xhpPK
Nw�X��f����~�text/sbasic/shared/03030108.xhpPK
Nw�XE�T����o�text/sbasic/shared/03131000.xhpPK
Nw�X����2�2����text/sbasic/shared/03020411.xhpPK
Nw�XX�>"��q�text/sbasic/shared/03102101.xhpPK
Nw�X�Ҷ�����text/sbasic/shared/03060500.xhpPK
Nw�X`�M"oo���!text/sbasic/shared/03030101.xhpPK
Nw�XT�
*����K3text/sbasic/shared/03050000.xhpPK
Mw�X0Ӽ��$�$��7text/sbasic/shared/01030400.xhpPK
Nw�X�iK������[text/sbasic/shared/03120310.xhpPK
Nw�X�t�@�
�
���dtext/sbasic/shared/03101130.xhpPK
Nw�X�	n�NN��	ptext/sbasic/shared/03030100.xhpPK
Nw�Xd�&�=(=(���utext/sbasic/shared/03090202.xhpPK
Nw�X�`�����text/sbasic/shared/03120312.xhpPK
Nw�X�_ˏ���E�text/sbasic/shared/03104700.xhpPK
Nw�X��������text/sbasic/shared/03131600.xhpPK
Nw�X�u�""��0�text/sbasic/shared/03104200.xhpPK
Nw�X9��r������text/sbasic/shared/03020405.xhpPK
Nw�Xb6������text/sbasic/shared/03020406.xhpPK
Nw�XQ�
�o
o
����text/sbasic/shared/03101500.xhpPK
Nw�X�1�(B	B	��w�text/sbasic/shared/03100300.xhpPK
Mw�X-�������text/sbasic/shared/03000000.xhpPK
Nw�X'[�7

����text/sbasic/shared/03130600.xhpPK
Nw�X��IF@@��G�text/sbasic/shared/03130100.xhpPK
Mw�XO.@�@�@���
text/sbasic/shared/00000003.xhpPK
Nw�XU����
�
���D
text/sbasic/shared/03101140.xhpPK
Nw�X.��@@��(P
text/sbasic/shared/03120309.xhpPK
Nw�X��e�%�%���c
text/sbasic/shared/03102100.xhpPK
Nw�X�MiB
B
��Ή
text/sbasic/shared/03070100.xhpPK
Mw�Xaj'���M�
text/sbasic/shared/03010102.xhpPK
Nw�X|�
�����
text/sbasic/shared/03101700.xhpPK
Nw�X�h����
text/sbasic/shared/03104300.xhpPK
Nw�X�%
��9�
text/sbasic/shared/03080500.xhpPK
Nw�X�J������
text/sbasic/shared/03020400.xhpPK
Nw�X[)�����ɼ
text/sbasic/shared/main0601.xhpPK
Nw�X�ٲ0������
text/sbasic/shared/03080601.xhpPK
Nw�X,�>�������
text/sbasic/shared/03131700.xhpPK
Nw�X��i�
�
����
text/sbasic/shared/03101120.xhpPK
Nw�Xji[�88����
text/sbasic/shared/03120401.xhpPK
Nw�X��;�MM��=�
text/sbasic/shared/03104100.xhpPK
Nw�X�`�1�����
text/sbasic/shared/03090410.xhpPK
Nw�Xۮ�?PP���text/sbasic/shared/03131900.xhpPK
Nw�X�^ �
�
��utext/sbasic/shared/03101110.xhpPK
Nw�X�a����text/sbasic/shared/03020404.xhpPK
Nw�X3�������6text/sbasic/shared/03101000.xhpPK
Nw�XN�g,�����Ftext/sbasic/shared/03060400.xhpPK
Mw�X��V&{{���Vtext/sbasic/shared/00000002.xhpPK
Nw�Xx&!,�����ftext/sbasic/shared/03103500.xhpPK
Nw�X6�D||��{ytext/sbasic/shared/03120400.xhpPK
Nw�X��y�QQ��4|text/sbasic/shared/03090404.xhpPK
Nw�X��`����Œtext/sbasic/shared/03080400.xhpPK
Nw�X;��+����text/sbasic/shared/03030302.xhpPK
Nw�X,������text/sbasic/shared/03120313.xhpPK
Nw�X�a�gHH����text/sbasic/shared/03080300.xhpPK
Mw�X�������z�text/sbasic/shared/01170100.xhpPK
Nw�X��������text/sbasic/shared/03080100.xhpPK
Nw�X z_�������text/sbasic/shared/keys.xhpPK
Nw�X,n:@������text/sbasic/shared/03030111.xhpPK
Nw�X�������p�text/sbasic/shared/03090203.xhpPK
Nw�X��P�	�	��B�text/sbasic/shared/03100900.xhpPK
Nw�Xe�``����text/sbasic/shared/03103400.xhpPK
Nw�Xގ:R88����text/sbasic/shared/03100400.xhpPK
Mw�X�A�text/sbasic/guide/PK
Mw�X�Xh��(��A�text/sbasic/guide/control_properties.xhpPK
Mw�X���ee#����text/sbasic/guide/create_dialog.xhpPK
Mw�X*nA�KK$��*�text/sbasic/guide/insert_control.xhpPK
Mw�X��=��!����text/sbasic/guide/translation.xhpPK
Mw�X�e����!���text/sbasic/guide/access2base.xhpPK
Mw�X���8�8!���+text/sbasic/guide/sample_code.xhpPK
Mw�Xy�T�
�
!���dtext/sbasic/guide/show_dialog.xhpPK88�]s