[Overview][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XMLCfg' (#lazutils)

TXMLConfig.StringToValueWithTypeInfo

Converts the specified string value to a value using the specified type.

Declaration

Source position: laz2_xmlcfg.pas line 85

protected function TXMLConfig.StringToValueWithTypeInfo(

  const AString: string;

  const APTypeInfo: PTypeInfo;

  out AResult

):Boolean;

Arguments

AString

  

String with the value converted to the specified type in the method.

APTypeInfo

  

Pointer to the RTTI type information for the converted value.

AResult

  

Untyped output parameter with the value converted to the specified type.

Function result

The return value is overloaded in StringToValueWithTypeInfo. Returns True if the value is successfully converted to the type in APTypeInfo. Returns a string with the converted value in an overloaded variant.


Version 4.0 Generated 2025-05-03 Home