Class: TEgStrParser |
Unit: EgStrParserComp | public,
read-only
property LastResult: TParseResult read FLastResult;
The TParseResult
returned by the last Parse call on
this instance. Not meaningful before the first call.
EgParser1.Parse(edAmount.Text, itDecimal, edAmount);
...
if EgParser1.LastResult.ResultType = otInvalid then
ShowMessage('Invalid value in ' + EgParser1.LastControl.Name);
Every call writes it: when one instance is used by several threads, see Thread safety.