Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function LimitsData( folderObj)
Dim FolderSecInfo
Dim ObjPrincipal
Dim ObjPrLimits
Dim Limit
Dim pLoop ' Principal (outer) loop index
Dim lLoop ' Limits (inner) loop index
Dim pID
Dim pName
Dim LimDesc
' Get the security information for the Folder object.
Set FolderSecInfo = folderObj.SecurityInfo
' Loop through each "principal" (group or user) for the folder
For pLoop = 1 to FolderSecInfo.ObjectPrincipals.Count
pID = "#" & FolderSecInfo.ObjectPrincipals.Item(pLoop).ID
pName = FolderSecInfo.ObjectPrincipals.Item(pLoop).Name
' Get the folder (object) Limits for the current "principal"
Set ObjPrincipal = FolderSecInfo.ObjectPrincipals.Item(pID)
If Err.Number <> 0 Then
Response.Write "<B>* Any-Principal Used *</B>"
Set ObjPrincipal = FolderSecInfo.AnyPrincipal(1)
Err.Clear
End If
Set ObjPrLimits = ObjPrincipal.Limits
' Loop through the current principal's limits and display their information.
For lLoop = 1 to ObjPrLimits.Count
Response.Write pName & "</TD><TD>"
Set Limit = ObjPrLimits.Item( lLoop)
' Convert Limits to a "Delete Instances Over..." format
LimDesc = Limit.Description
If LimDesc = "Maximum instance age in days" then
LimDesc = Limit.Value & " days old"
Else If LimDesc = "Maximum instance count per object" then
LimDesc = Limit.Value & " per object, in total"
Else If LimDesc = "Maximum instance count per object, per user" then
LimDesc = Limit.Value & " per object, per user"
Else
LimDesc = Limit.Description & ": " & Limit.Value
End If
End If
End If
Response.Write LimDesc & "</TD><TD align='center'>"
' Response.Write Limit.Description & "</TD><TD align='center'>"
' Response.Write Limit.Value & "</TD><TD align='center'>"
Response.Write Limit.UseMaximumValue & "</TD><TD align='center'>"
Response.Write Limit.Inherited & " " ' w/o space, true/false displays as 0/-1
Response.Write "</TD></TR><TR><TD></TD><TD></TD><TD></TD><TD>" ' set up for next row
Next
Next