OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Message and Input Boxes 63<br />
Input Box For Querying Simple Strings<br />
The InputBox function queries simple strings from the user. It is therefore a simple<br />
alternative to configuring dialogs. InputBox receives three standard parameters:<br />
• An information text.<br />
• A box title.<br />
• A default value which can be added within the input area.<br />
InputVal = InputBox("Please enter value:", "Test", "default value")<br />
As a return value, the InputBox provides the string typed by the user.<br />
Source: http:/ / <strong>wiki</strong>. services. openoffice. <strong>org</strong>/ w/ index. php? title=Documentation/ <strong>BASIC</strong>_<br />
<strong>Guide</strong>/ Message_ and_ Input_ Boxes_ (Runtime_ Library)&oldid=96860<br />
Principal Authors: Fpe, Ccornell, TJFrazier<br />
Other Functions<br />
Beep<br />
The Beep function causes the system to play a sound that can be used to warn the user of<br />
an incorrect action. Beep does not have any parameters:<br />
Shell<br />
Beep ' creates an informative tone<br />
External programs can be started using the Shell function.<br />
Shell(Pathname, Windowstyle, Param)<br />
Pathname defines the path of the program to be executed.<br />
Windowstyle defines the window in which the program is started.<br />
The following values are possible:<br />
• 0 - The program receives the focus and is started in a concealed window.<br />
• 1 - The program receives the focus and is started in a normal-sized window.<br />
• 2 - The program receives the focus and is started in a minimized window.<br />
• 3 - The program receives the focus and is started in a maximized window.<br />
• 4 - The program is started in a normal-sized window, without receiving the focus.<br />
• 6 - The program is started in a minimized window, the focus remains in the current<br />
window.<br />
• 10 - The program is started in full screen mode.