Develop > Programming Guide > System Language reference > List: RAD functions > RAD function: dbdict.helper(“unique.key”)

RAD function: dbdict.helper(“unique.key”)

A RAD utility function that helps retrieve the first unique key or the primary key of a file efficiently.

Function

dbdict.helper(“unique.key”)

Format

dbdict.helper(“unique.key”,$L.file/$filename)

Parameters

The following parameters are valid for this function.

Parameter

Description

$L.file/$filename

The variable or name of the file whose first unique key or primary key is to be retrieved.

Factors

Only the normal file type is supported. Other types of tables are not supported.

This function returns the first unique key or the primary key from the datadict file instead of the dbdict file; the application layer will keep consistency between datadict and dbdict for the first unique key or the primary key.

Return values

An array of strings containing the names of all fields that constitute the first unique key or the primary key.