Xbasic

A5_USERBELONGSTO Function

Syntax

Result_Flag as L = A5_UserBelongsTo(C cGroup [,C cUser [,C master_password ]])

Arguments

Result_Flag

.T. = the user belongs to the Group or the Group exists. .F. = the user does not belong to the Group or the Group does not exist.

cGroup

The name of a user group.

cUser

Optional. The name of a user.

master_password

Required when a User is specified. The master password for the database.

Description

The A5_USERBELONGSTO() function indicates whether a User belongs to a Group or, if a User is not specified, if the specified Group exists. The function is not meaningful if you are logged on as "Administrator".

Example

? A5_UserBelongsTo("development", "aaron", "omega")
= .T.

Limitations

Desktop applications only.

See Also