[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'rttiutils' (#fcl)

TReadStrEvent

Callback to read strings from storage

Declaration

Source position: rttiutils.pp line 62

type TReadStrEvent = function(

  const ASection: String;

  const Item: String;

  const Default: String

):String of object;

Arguments

ASection

  

Section to read value from

Item

  

Key name for value

Default

  

Default return value if none was found

Function result

Value of Item in section ASection

Description

TReadStrEvent is used by TPropsStorage to read strings from a storage mechanism, in a .ini file like fashion: The call should read the string in ASection with key Item, and if it does not exist, Default should be returned.

See also

TPropsStorage

  

Property storage mechanism

TWriteStrEvent

  

Write a string to storage

TEraseSectEvent

  

Clear a storage section

The latest version of this document can be found at lazarus-ccr.sourceforge.net.