GetUsageCodeValue
function GetUsageCodeValue (const Key : TKey; const Code : TCode) : LongInt;

TurboPack OnGuard FMX

GetUsageCodeValue

function GetUsageCodeValue (const Key : TKey; const Code : TCode) : LongInt;

Navigation:  »No topics above this level«

GetUsageCodeValue

function GetUsageCodeValue (const Key : TKey; const Code : TCode) : LongInt;

Return to chapter overview

_bm1 GetUsageCodeValue returns the current usage count value store in the Code.

Key must be the same key that was used to create the code or the code is considered invalid. If the code is invalid, 0 is returned.

This routine is defined in the OnGuard unit. (as of 1.15 this routine has been moved to the OgUtil unit)