AnnGetHyperlinkParam example for C++ Builder
//This example retrieves parameters using AnnGetHyperlinkParam.
void __fastcall TForm1::LEADAnn1AnnChange (L_HANDLE hObject)
{
AnsiString msgstr;
int nType;
int iParamCount;
long lRet;
nType= LEADAnn1->AnnGetHyperlinkType (hObject);
if (nType == ANNLINK_ANNEVENT5)
{
msgstr= "Params are: \n" ;
for ( iParamCount= 0; iParamCount<=4; iParamCount++ )
{
lRet= LEADAnn1->AnnGetHyperlinkParam(hObject, iParamCount);
msgstr= msgstr + " Param" + IntToStr(iParamCount + 1) + ": " + IntToStr((int)lRet) + "\n";
}
}
else
msgstr= "Invalid Type";
ShowMessage ( msgstr ) ;
}