Location: Symbol Reference > Functions > JwFormatAccessRights Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwFormatAccessRights Function
Pascal
function JwFormatAccessRights(const GrantedAccess: TJwAccessMaskArray; const AccessStatus: TJwCardinalArray; RightsMapping: Array of TJwRightsMapping): TJwString; overload;
Parameters 
Description 
const GrantedAccess: TJwAccessMaskArray 
defines an array of access masks. Each array element will get its own column (zero based). 
const AccessStatus: TJwCardinalArray 
defines an array of the error status of the right. If status is neither zero nor 5 (access denied) instead of an emtyp or checked checkbox ([ ] or [X]), the status will be shown in the checkbox (e.g. [2]). The array index of GrantedAccess will be used to get the error status index from AccessStatus. Thus the length of array AccessStatus and GrantedStatus must be the same. 
RightsMapping: Array of TJwRightsMapping 
defines a map structure that maps between constants and strings (e.g. JwsclConstants.FileMapping

Returns the access mask with its rights states. Each line is separated by a line break (#13#10)

JwFormatAccessRights creates a formatted string that splits up several access massk into its rights constants. The constants can be named if parameter RightsMapping is used. 

Each line contains one or more checkboxes that define whether the access masks contain a specifc right or not. Furthermore it contains the name of the right. A line may look like this:

 [X] .. [ ] <Name of access rights>  for a access right that is set
 [ ] .. [ ] <Name of access rights>  for a access right that is not set
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!