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.

រូប​តំណាង​ចំណាំ

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


The following values are possible:

Windowstyle

Meaning

0

ការ​ផ្តោត​អារម្មណ៍​គឺ​ស្ថិត​នៅ​លើ​បង្អួច​កម្មវិធី​ដែល​លាក់ ។

Not implemented in LibreOffice.

1

ការ​ផ្តោត​អារម្មណ៍​គឺ​ស្ថិត​នៅ​លើ​បង្អួច​កម្មវិធី​ក្នុង​ទំហំ​តាម​ស្តង់ដារ ។

Not implemented in LibreOffice.

2

ការ​ផ្តោត​អារម្មណ៍​គឺ​ស្ថិត​នៅ​លើ​បង្អួច​កម្មវិធី​ដែល​បាន​បង្រួម​អប្ប​បរមា ។

3

ការ​ផ្តោត​អារម្មណ៍​គឺ​ស្ថិត​នៅ​លើ​បង្អួច​កម្មវិធី​ដែល​បាន​ពង្រីក​អតិ​បរមា ។

4

បង្អួច​កម្មវិធី​ទំហំ​តាម​ស្តង់ដារ ដោយ​គ្មាន​ការ​ផ្តោត​អារម្មណ៍ ។

Not implemented in LibreOffice.

6

បង្អួច​កម្មវិធី​ដែល​បាន​បង្រួម​អប្ប​បរមា ការ​ផ្តោត​អារម្មណ៍​នៅ​សល់​លើ​បង្អួច​សកម្ម ។

Not implemented in LibreOffice.

10

បង្ហាញ​​ពេញ​​អេក្រង់ ។


រូប​តំណាង​ចំណាំ

Windowstyle 3 and 10 are equivalent in Windows systems.


Param

String that specifies additional arguments passed to the program.

bSync

ប្រសិន​បើ​តម្លៃ​នេះ​ត្រូវ​បាន​កំណត់​ទៅ​ជា ពិត ពាក្យ​បញ្ជា Shell និង​ភារកិច្ច​ទាំងអស់​របស់ LibreOffice នឹង​រង់ចាំ​រហូត​ដល់​ប្រតិបត្តិ​ការ​សែល​ចប់​សព្វ​គ្រប់ ។ ប្រសិន​បើ​តម្លៃ​ត្រូវ​បាន​កំណត់​ទៅ​ជា មិន​ពិត សែល​ត្រឡប់​ដោយ​ផ្ទាល់ ។ តម្លៃ​លំនាំដើម​គឺ មិន​ពិត ។

Error codes:

5 ការ​ហៅ​បែបបទ​មិន​ត្រឹមត្រូវ

53 រក​មិន​ឃើញ​ឯកសារ

73 មិន​អាច​ប្រតិបត្តិ

Example:


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