This function takes three arguments and is used as below:
fgl_getproperty(["gui/server"], type.name, value)
In the above syntax,
GUI properties are script-like properties that can be used to determine the overall look and functionality of a 4GL program. Unlike script options, the GUI properties are dynamic and so can be used to alter a program’s appearance during its execution, allowing for greater customization.
Other kinds of properties that you can get are:
property type |
property name |
example |
system.registry |
registry key to be read |
CALL fgl_getproperty("system.registry", "HKEY_LOCAL_MACHINE\\SOFTWARE\\QUERIX\\Q4GL\\QUERIXDIR") |
system.environment |
environment variable name |
CALL fgl_getproperty("system.environment", "TEMP") |
system.network |
"Ipaddress" |
can get parameters of both server and client (by default, client): CALL fgl_getproperty("gui","system.network","Ipaddress") CALL fgl_getproperty("server","system.network","Ipaddress") The same results can be achieved in this way: CALL fgl_getenv("QX_CLIENT_IP") CALL fgl_getenv("QX_SERVER_IP") |
system.network |
"hostname" |
can get parameters of both server and client (by default, client): CALL fgl_getproperty("gui","system.network","hostname") CALL fgl_getproperty("server","system.network","hostname") The same results can be achieved in this way: CALL fgl_getenv("QX_CLIENT_HOST") CALL fgl_getenv("QX_SERVER_HOST") |
system |
"username" |
|
user |
user property name |
CALL fgl_getproperty("user.hello", "myoption") |