BBjKeyInfo::getKeySegments

Description

In BBj 6.0 and higher, this method returns a BBjVector of BBjKeySegment objects.

Syntax

Return Value

Method

BBjVector

getKeySegments()

Parameters

None.

Return Value

Returns all of the BBjKeySegment objects in this BBjKeyInfo as a BBjVector, one for each segment in the key.

Remarks

None.

 

Example

rem ' Query the key segments of a key

filename$ = "Sample.dat"
erase filename$,err=*next
mkeyed filename$,[1:1:6]+[2:1:3],[3:1:2],0,64
channel = unt
open (channel)filename$
BBjFileInfo! = BBjAPI().getFileSystem().getFileInfo(channel)
BBjKeyInfos! = BBjFileInfo!.getKeyInfo()
for k = 0 to BBjKeyInfos!.size()-1
    BBjKeyInfo! = BBjKeyInfos!.get(k)
    print "KNUM",k,": ",BBjKeyInfo!
    BBjKeySegments! = BBjKeyInfo!.getKeySegments()
    for s = 0 to BBjKeySegments!.size()-1
        BBjKeySegment! = BBjKeySegments!.get(s)
        print "   Segment",s,": ",BBjKeySegment!
    next s
next k

See Also

BBjAPI

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