Shell funktsioon

Käivitab muu rakenduse ja määrab vajaduse korral vastava aknalaadi.

Süntaks:

Shell (Pathname As String[, Windowstyle As Integer[, Param As String[, bSync]]])

Parameetrid:

Pathname

Name of the program that you want to start, optionally with complete path and/or arguments.

Windowstyle

Optional integer expression that specifies the style of the window that the program is executed in.

note

Parameter Windowstyle is only effective on Windows systems. On other systems the parameter is ignored.


The following values are possible:

Windowstyle

Tähendus

0

Fookus on peidetud programmiaknal.

Not implemented in LibreOffice.

1

Fookus on standardsuurusega programmiaknal.

Not implemented in LibreOffice.

2

Fookus on minimeeritud programmiaknal.

3

Fookus on maksimeeritud programmiaknal.

4

Standardsuurusega programmiaken, ilme fookuseta.

Not implemented in LibreOffice.

6

Minimeeritud programmiaken, fookus jääb aktiivsele aknale.

Not implemented in LibreOffice.

10

Täisekraankuva.


note

Windowstyle 3 and 10 are equivalent in Windows systems.


Param

String that specifies additional arguments passed to the program.

bSync

Kui selleks väärtuseks on seatud tõene, siis ootavad käsk Shell ja kõik programmi LibreOffice ülesanded kestaprotsessi lõpulejõudmist. Kui väärtuseks on seatud väär, siis tagastab kest kohe. Vaikimisi väärtus on väär.

Veakoodid:

5 Vigane protseduuri väljakutse

53 Faili ei leitud

73 Ei ole realiseeritud

Näide:


Sub ExampleShellForWin
    Shell("c:\windows\calc.exe",2)
End Sub