[Overview][Constants][Types][Classes][Procedures and functions] |
return value of an Int64 property
Source position: line 0
function GetInt64Prop( |
Instance: TObject; |
PropInfo: PPropInfo |
):Int64; |
Instance: TObject; |
const PropName: String |
):Int64; |
Remark: | Publishing of Int64 properties is not yet supported by Free Pascal. This function is provided for Delphi compatibility only at the moment. |
GetInt64Propreturns the value of the property of type Int64that is described by PropInfoor with name Propnamefor the object Instance.
No checking is done whether Instanceis non-nil, or whether PropInfodescribes a valid Int64property of Instance. Specifying an invalid property name in PropNamewill result in an EPropertyErrorexception
|
Set value of a Int64 property |
|
|
Get the value of an ordinal property |
|
|
Return the value of a string property. |
|
|
Return value of floating point property |
|
|
Return value of a method property |
|
|
Return the value of a set property. |
|
|
Return value of an object-type property. |
|
|
Return the value of an enumeration type property. |
program example15; { This program demonstrates the GetInt64Prop function } {$mode objfpc} uses rttiobj,typinfo; Var O : TMyTestObject; PI : PPropInfo; begin O:=TMyTestObject.Create; Writeln('Int64 property : '); PI:=GetPropInfo(O,'Int64Field'); Writeln('Value : ',O.Int64Field); Writeln('Get (name) : ',GetInt64Prop(O,'Int64Field')); Writeln('Get (propinfo) : ',GetInt64Prop(O,PI)); SetInt64Prop(O,'Int64Field',12345); Writeln('Set (name,12345) : ',O.Int64Field); SetInt64Prop(O,PI,54321); Writeln('Set (propinfo,54321) : ',O.Int64Field); O.Free; end.