lazarus-ccr/wst/trunk/wst_delphi_rtti_utils.pas
inoussa 5ce9841611 Delphi server side support ( binary, soap, xmlrpc ):
- the Indy http_server compile and works
 - for xml, the Delphi xmldom unit as used ( tested with msxml )

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@213 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-13 22:33:55 +00:00

21 lines
343 B
ObjectPascal

unit wst_delphi_rtti_utils;
interface
uses SysUtils, TypInfo;
function GetEnumNameCount(AEnumTypeInfo: PTypeInfo): Integer;
implementation
function GetEnumNameCount(AEnumTypeInfo: PTypeInfo): Integer;
var
T: PTypeData;
begin
Result := 0;
T := GetTypeData(AEnumTypeInfo);
Result := ( T^.MaxValue - T^.MinValue ) + 1;
end;
end.