OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Other Functions<br />
Beep<br />
Other Functions<br />
The Beep function causes the system to play a sound that can be used to warn the user of an incorrect action.<br />
Beep does not have any parameters:<br />
Beep ' creates an informative tone<br />
Shell<br />
External programs can be started using the Shell function.<br />
Shell(Pathname, Windowstyle, Param, bSync)<br />
Pathname<br />
the path of the program to be executed.<br />
In MS-Windows, use ConvertToURL(Pathname) otherwise the command will not work if Pathname<br />
contains spaces or national characters.<br />
Windowstyle<br />
Param<br />
bSync<br />
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 window.<br />
10 - The program is started in full screen mode.<br />
command line parameters to be transferred to the program to be started.<br />
wait for shell command to finish flag<br />
true - wait for shell command to finish<br />
false - don't wait for shell command to finish<br />
Wait and WaitUntil<br />
The Wait statement suspends program execution for a specified time. The waiting period is specified in<br />
milliseconds. The command:<br />
Wait 2000<br />
specifies a delay of 2 seconds (2000 milliseconds).<br />
The WaitUntil statement provides a greater degree of compatibility with VBA parameter usage. WaitUntil<br />
takes a parameter of type Date, with a combined date and time value. The command:<br />
WaitUntil Now + TimeValue("00:00:02")<br />
Chapter 3 · Runtime Library 49