BBjFileSystem::getCachedCount

Description

In BBj 2.01 and higher, this method returns the number of programs currently within the program cache.

Syntax

Return Value

Method

int

getCachedCount()

Parameters

None.

Return Value

Returns the number of programs currently within the program cache.

Remarks

A program is cached if any of the following are true:

  • It is in the MRU list.

  • It is currently being referenced from a client.

  • It has been loaded as a resident program using the ADDR Verb (and has not been removed via the DROP Verb).

Example

rem 'Obtain the instance of the BBjFileSystem object

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Obtain the instance of the BBjFileSystem object
let myFileSystem! = myAPI!.getFileSystem()
PRINT "Cached Number: ",
PRINT myFileSystem!.getCachedCount()

See Also

BBjAPI

BBjSysGui

Object Variables

ADDR Verb - Load Public Program as Resident

DROP Verb - Release Memory-Resident Public Program

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.