On E : Exception Do - Support

Does anyone know how to get the Text of a raised exception inside a Try.. Except..End? I try the following and get syntax errors.

    Try

      iqbItem1.GetByName(sChargeType);
    Except
      on e : exception do
      begin
        ShowMessage(E.Message);
      end;
    end;

Thanks,

Rhett Price
IndySoft

Hi Rhett, 


you can use LastExceptionMessage and LastExceptionClassName functions. Both return a string value.