JVCL Help:TJvCustomInspectorData.CheckReadAccess

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Checks if the data can be read.


Pascal

 procedureCheckReadAccess; virtual;


Description

CheckReadAccess checks if the data can be read. If the data can't be read, an exception will be generated.
CheckReadAccess will check if IsInitialized, IsAssigned and HasValue (in that order) return True. If any check fails, an exception will be generated, stating the reason why the data can't be read.
CheckReadAccess should be called from all GetAsxxxxxx methods before any data is read. Descendants can optionally provide additional checks by overriding this method.


See Also

TJvCustomInspectorData.CheckWriteAccess, TJvCustomInspectorData.HasValue, TJvCustomInspectorData.IsAssigned, TJvCustomInspectorData.IsInitialized


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page