BBjKeyInfo::isUnique

Description

In BBj 6.0 and higher, this BBjKeyInfo method returns whether a key is unique.

Syntax

Return Value

Method

boolean

isUnique()

Parameters

None.

Return Value

0 (false) = the key is not unique.

1 (true) = the key is unique.

Remarks

None.

 

Example

rem ' Determine of a key is unique

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)
BBjKeyInfo!=BBjFileInfo!.getKeyInfo(1)

if BBjKeyInfo!.isUnique() then
   print "Key is unique"
else
   print "Key is not unique"
endif

end

See Also

BBjAPI

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