LibreOffice 24.2 žinynas
Paleidžia kitą programą ir, jei reikia, apibrėžia atitinkamą lango stilių.
Shell (Pathname As String[, Windowstyle As Integer[, Param As String[, bSync]]])
Name of the program that you want to start, optionally with complete path and/or arguments.
Optional integer expression that specifies the style of the window that the program is executed in.
Parameter Windowstyle is only effective on Windows systems. On other systems the parameter is ignored.
The following values are possible:
| Windowstyle | Meaning | 
|---|---|
| 0 | Pagrindinis dėmesys skiriamas paslėptam programos langui. | 
| 1 | Pagrindinis dėmesys skiriamas standartinio dydžio programos langui. Not implemented in LibreOffice. | 
| 2 | Didžiausias dėmesys skiriamas sumažintam programos langui. | 
| 3 | didžiausias dėmesys skiriamas maksimaliam programos langui. | 
| 4 | Standartinio dydžio programos langas, be fokusavimo. Not implemented in LibreOffice. | 
| 6 | Sumažintas programos langas, fokusavimas lieka aktyviame lange. Not implemented in LibreOffice. | 
| 10 | Visas ekranas. | 
Windowstyle 3 and 10 are equivalent in Windows systems.
String that specifies additional arguments passed to the program.
Jei ši reikšmė yra true, komanda Shell ir visos „LibreOffice“ užduotys laukia, kol baigsis apvalkalo procesas. Jei reikšmė yra false, apvalkalas baigia darbą iš karto. Numatytoji reikšmė yra false.
Sub ExampleShellForWin
    Shell("c:\windows\calc.exe",2)
End Sub