Shell Fonksiyonu

Başka bir uygulama başlatır ve gerekirse kendi pencere biçemini tanımlar.

Sözdizimi:

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

Parametreler:

Yol adı

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

Odak gizli program penceresindedir.

Not implemented in LibreOffice.

1

Odak standart boyuttaki program penceresindedir.

Not implemented in LibreOffice.

2

Odak simge durumuna küçültülmüş program penceresindedir.

3

Odak ekranı kaplayan program penceresindedir.

4

Odaksız standart boyutta program penceresi.

Not implemented in LibreOffice.

6

Simge durumuna küçültülmüş program penceresi, odak etkin pencerede kalır.

Not implemented in LibreOffice.

10

Tam ekran görünüm.


note

Windowstyle 3 and 10 are equivalent in Windows systems.


Param

String that specifies additional arguments passed to the program.

bSync

Eğer bu değer doğru olarak ayarlanırsa, Kabuk komutu ve tüm LibreOffice görevleri kabul süreci bitene kadar bekler. Eğer değer yanlış olarak ayarlanırsa, kabul doğrudan geri döner. Varsayılan değer yanlış'tır.

Hata kodları:

5 Geçersiz yordam çağrısı

53 Dosya bulunamadı

73 Gerçekleştiirilmedi

Örnek:


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

Lütfen bizi destekleyin!