Board index » delphi » Null value assignments from Database Queries
Peter Campbell
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Null value assignments from Database QueriesI have just started using Delphi 3.0 Client/Server version. I have a TQuery object and am retrieving field values using the following string_variable := QueryObject ['field_name']; where QueryObject is the name of my TQuery object which has a record The problem is when the field value is null the system throws an exception. I can go: try .... except end; Is there a way to avoid this, should I use variant data types to handle If anyone has a solution to this problem or can make any other suggestions |