Symphony Framework
GetKeyValue Method (DBAccess)
Example 
Symphony.dB Namespace > DBAccess Class : GetKeyValue Method
Key of reference to use.
Record data area.
Returned with the value of the required key given the data in the passed record area.
Returned with the length of the key.
From the passed data area, for the passed key reference, return the calculated key value and key length.
Syntax
public void GetKeyValue( 
   int keyOfReference,
   string dataArea,
   out string keyValue,
   out int keyLength
)

Parameters

keyOfReference
Key of reference to use.
dataArea
Record data area.
keyValue
Returned with the value of the required key given the data in the passed record area.
keyLength
Returned with the length of the key.
Example
Int32 chan;
Symphony.dB.DBAccess itemAccess = new DBAccess("ITEM", "DATABASE:DatabaseManager");
if (itemAccess.OpenInput(out chan) == DBResponse.DBOK)
{
    string keyValue;
    int keyLength;
    itemAccess.GetKeyValue(0, "ITM001", out keyValue, out keyLength);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DBAccess Class
DBAccess Members