Application (gb)
该类提供关于当前正在运行的应用程序的信息,并允许访问进程环境和进程命令行。
该类是静态类。
静态属性
Args
|
Return an array containing the arguments passed to the program by the shell.
|
Daemon
|
|
Dir
|
|
Env
|
Returns a virtual collection of strings containing the process environment variables.
|
Handle
|
|
Id
|
|
Name
|
Print Application.Name
|
ParentHandle
|
Return the identifier of the parent of the current process.
|
Path
|
|
Priority
|
The priority is a number between -20 (the highest) and 19 (the lowest), 0 being the normal priority.
|
Startup
|
|
Task
|
|
TempDir
|
It's normally /tmp/gambas.<user id>/<process id> , but some beasts like SystemD can change that.
|
Title
|
|
Version
|
If the "Get from VERSION file" checkbox is checked, the program version is taken from the first text file named VERSION found in the parent directories of the project.
|
示例
假设你开始一个新的Gambas工程,你称这个工程为"MyApplication",说明是"This is the title of MyApplication",保存在
/home/user/gambas/MyApplication
,并且是第一个版本,即0.0.1。
另请参阅