Shell Function

Starts another application and defines the respective window style, if necessary.

Syntax

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

पैरामीटर

पथनाम

प्रोग्राम का संपूर्ण पथ तथा प्रोग्राम नाम जो आप प्रारंभ करना चाहते हैं.

Windowstyle

Optional integer expression that specifies the style of the window that the program is executed in. The following values are possible:

0

फ़ोकस छुपे प्रोग्राम विंडो में है.

1

फ़ोकस प्रोग्राम विंडो में मानक आकार में है.

2

फ़ोकस न्यूनतम प्रोग्राम विंडो पर है.

3

फ़ोकस न्यूनतम प्रोग्राम विंडो पर है.

4

मानक आकार प्रोग्राम विंडो, फ़ोकस के बगैर.

6

न्यूनतम प्रोग्राम विंडो, फ़ोकस सक्रिय विंडो पर ही रहेगा.

10

पूरे स्क्रीन में प्रदर्शन.


Param

कोई भी स्ट्रिंग एक्सप्रेशन जो पास करने के लिए कमांड लाइन निर्धारित करता है.

bSync

If this value is set to true, the Shell command and all LibreOffice tasks wait until the shell process completes. If the value is set to false, the shell returns directly. The default value is false.

Error codes:

5 Invalid procedure call

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err53 not found).

73 Not implemented

उदाहरण

Sub ExampleShellForWin

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

End Sub