[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Loads the lines of text for the memo from the field in the linked data set.
Source position: dbctrls.pp line 1013
public procedure TDBMemo.LoadMemo; virtual; |
LoadMemo is a method used to load the text for the control from the field in the linked data set. No actions are performed in the method if the value for the memo has already been loaded, the field in the data link has not been assigned, or the field does not use the TBlobField field type.
LoadMemo signals the OnGetText event handler (when assigned) in the field data link to get the value that is stored in the Lines property. If the event handler has not been assigned, the AsString method in the linked data field is used to get the value for the control.
If an EInvalidOperation exception occurs while getting the value for the control, the exception message is stored in the Lines property.
LoadMemo is called when the value in AutoDisplay is changed to True, when the DataChange method is called, and when the Enter key is handled in the KeyPress method.
lazarus-ccr.sourceforge.net |