Difference between revisions of "GETGID()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) (→Description) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Function to get group identity | + | Function to get Linux group identity |
− | + | ||
==Syntax== | ==Syntax== | ||
GETGID() | GETGID() | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ACCESS() | + | [[ACCESS()]], [[GETENV()]], [[GETGRNAM()]], [[GETPID()]], [[GETUID()]], [[PUTENV()]], [[STR()]] |
− | + | ||
==Description== | ==Description== | ||
− | The GETGID() function returns the group number of the | + | The GETGID() function returns the group number of the current Linux user as a decimal value. |
− | + | ||
− | + | ||
+ | Note: this refers to the OS user account on Linux, not the Lianja [[Users and Roles]]. | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | if getgid() > 100 and getgid() < 200 | |
− | + | //... | |
− | + | endif | |
− | + | ||
− | + | ||
</code> | </code> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Environment Functions]] | [[Category:Environment Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 12:17, 17 December 2021
Contents
Purpose
Function to get Linux group identity
Syntax
GETGID()
See Also
ACCESS(), GETENV(), GETGRNAM(), GETPID(), GETUID(), PUTENV(), STR()
Description
The GETGID() function returns the group number of the current Linux user as a decimal value.
Note: this refers to the OS user account on Linux, not the Lianja Users and Roles.
Example
if getgid() > 100 and getgid() < 200 //... endif