Difference between revisions of "Documentation/BASIC Guide/Other Functions (Runtime Library)"
Line 12: | Line 12: | ||
The <tt>Beep</tt> function causes the system to play a sound that can be used to warn the user of an incorrect action. <tt>Beep</tt> does not have any parameters: | The <tt>Beep</tt> function causes the system to play a sound that can be used to warn the user of an incorrect action. <tt>Beep</tt> does not have any parameters: | ||
− | + | <source lang="oobas"> | |
+ | Beep ' creates an informative tone | ||
+ | </source> | ||
== Shell == | == Shell == | ||
Line 18: | Line 20: | ||
External programs can be started using the Shell function. | External programs can be started using the Shell function. | ||
− | + | <source lang="oobas"> | |
+ | Shell(Pathname, Windowstyle, Param) | ||
+ | </source> | ||
<tt>Pathname</tt>defines the path of the program to be executed. | <tt>Pathname</tt>defines the path of the program to be executed. | ||
Line 40: | Line 44: | ||
The <tt>Wait</tt> function terminates program execution for a specified time. The waiting period is specified in milliseconds. The command | The <tt>Wait</tt> function terminates program execution for a specified time. The waiting period is specified in milliseconds. The command | ||
− | + | <source lang="oobas"> | |
+ | Wait 2000 | ||
+ | </source> | ||
specifies an interrupt of 2 seconds (2000 milliseconds). | specifies an interrupt of 2 seconds (2000 milliseconds). | ||
Line 48: | Line 54: | ||
The <tt>Environ</tt> function returns the environmental variables of the operating system. Depending on the system and configuration, various types of data are saved here. The following call determines the environment variables of temporary directory of the operating system: | The <tt>Environ</tt> function returns the environmental variables of the operating system. Depending on the system and configuration, various types of data are saved here. The following call determines the environment variables of temporary directory of the operating system: | ||
− | + | <source lang="oobas"> | |
− | + | Dim TempDir | |
+ | TempDir=Environ ("TEMP") | ||
+ | </source> | ||
{{PDL1}} | {{PDL1}} |
Revision as of 13:38, 2 April 2008
Beep
The Beep function causes the system to play a sound that can be used to warn the user of an incorrect action. Beep does not have any parameters:
Beep ' creates an informative tone
Shell
External programs can be started using the Shell function.
Shell(Pathname, Windowstyle, Param)
Pathnamedefines the path of the program to be executed.
Windowstyle defines the window in which the program is started.
The following values are possible:
- 0 - The program receives the focus and is started in a concealed window.
- 1 - The program receives the focus and is started in a normal-sized window.
- 2 - The program receives the focus and is started in a minimized window.
- 3 - The program receives the focus and is started in a maximized window.
- 4 - The program is started in a normal-sized window, without receiving the focus.
- 6 - The program is started in a minimized window, the focus remains in the current window.
- 10 - The program is started in full screen mode.
The third parameter, Param, permits command line parameters to be transferred to the program to be started.
Wait
The Wait function terminates program execution for a specified time. The waiting period is specified in milliseconds. The command
Wait 2000
specifies an interrupt of 2 seconds (2000 milliseconds).
Environ
The Environ function returns the environmental variables of the operating system. Depending on the system and configuration, various types of data are saved here. The following call determines the environment variables of temporary directory of the operating system:
Dim TempDir TempDir=Environ ("TEMP")
Content on this page is licensed under the Public Documentation License (PDL). |