AnnGetHyperlinkParam example for Visual J++
Note: This topic is for Document/Medical only.
This example retrieves parameters using AnnGetHyperlinkParam.
private void LEAD1_annChange(Object source, LTOCXU.LEAD.AnnChangeEvent e)
{
String strMsg = new String();
short sType = LEAD1.AnnGetHyperlinkType( e.hObject );
if( sType == LTOCXU.AnnHyperlinkTypeConstants.ANNLINK_ANNEVENT5 )
{
strMsg = "Params are:\n";
for( short sParamCount = 0 ; sParamCount < 5 ; sParamCount++ )
{
int nRet = LEAD1.AnnGetHyperlinkParam( e.hObject, sParamCount );
strMsg += " Param" + ( sParamCount + 1 ) + ": " + nRet + "\n";
}
}
else
strMsg = "Invalid Type";
MessageBox.show( strMsg );
}