Sign in Join
FPDoc Onlineexperiment

ParseStoredItem function

In unit RttiUtils

Split a property reference to component reference and property name.

Declaration

pascal
function ParseStoredItem(const Item: string; var CompName: string; 
 var PropName: string): Boolean

Arguments

Item

Property reference to parse.

CompName

Component part of property reference.

PropName

Property name part of property reference.

Function result

True if Item contains a valid property reference.

Description

ParseStoredItem parses the property reference Item and splits it in a reference to a component (returned in CompName) and a name of a property (returned in PropName). This function basically does the opposite of CreateStoredItem. Note that both names should be non-empty, i.e., at least 1 dot character must appear in Item.

Errors

If an error occurred during parsing, False is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.