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

Meaning

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

Palun toeta meid!