IsMaxLengthEnabled Example for C#
//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestIsMaxLengthEnabled ( )
{
int lLen = 0;
//is max len enabled?
if (LEADDICOMNet1.IsMaxLengthEnabled(LEADDICOMNet1.hPDU)
== true)
{
//disable it
//display old value
lLen = LEADDICOMNet1.GetMaxLength(LEADDICOMNet1.hPDU);
MessageBox.Show(System.Convert.ToString(lLen));
LEADDICOMNet1.SetMaxLength(LEADDICOMNet1.hPDU,
false, lLen);
}
else
{
//enable it
LEADDICOMNet1.SetMaxLength(LEADDICOMNet1.hPDU,
true, 8);
}
}