Shell Function

რთავს პროგრამას და საჭიროების მიხედვით განსაზღვრავს შესაბამისი ფანჯრების სტილს.

Syntax:

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

Parameters:

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

მნიშვნელობა

0

ფოკუსი არის პროგრამის დამალულ ფანჯარაზე

Not implemented in LibreOfficeDev.

1

ფოკუსი არის პროგრამის ფანჯარაზე სტანდარტულ ზომაზე.

Not implemented in LibreOfficeDev.

2

ფოკუსი არის მინიმიზირებული პროგრამის ფანჯარაზე.

3

ფოკუსი არის მაქსიმიზირებული პროგრამის ფანჯარაზე.

4

პროგრამის ფანჯრის სტანდარტული ზომა, ფოკუსის გარეშე.

Not implemented in LibreOfficeDev.

6

მინიმიზირებული პროგრამის ფანჯარა, ფოკუსი რჩება აქტიურ ფანჯარაზე.

Not implemented in LibreOfficeDev.

10

ჩვენება მთელს ეკრანზე.


note

Windowstyle 3 and 10 are equivalent in Windows systems.


Param

String that specifies additional arguments passed to the program.

bSync

თუ ეს მნიშვნელობა დაყენებულია როგორც true, გარსის ბრძანება და ყველა LibreOfficeDev დავალებები იცდიან, გარსის დამთავრებამდე. თუ მნიშვნელობა დაყენებულია როგორც false, მაშინ გარსი პირდაპირ აბრუნებს ბრძანებებს. საწყისი მნიშვნელობა არის false.

Error codes:

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

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

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

Example:


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