I'm testing this module on a local database.
The table is a simple one with a DATETIME field.
Each record has 8 fields, i can get without errors all fields except the 7th (starting from 0) -> the datetime.
i try to get a string from the datetime field with:
No compile errors.
At runtime "Unhandled Exception: Attemp to access field or method of Null object" at that line.
Why is there this error?
The table is a simple one with a DATETIME field.
Each record has 8 fields, i can get without errors all fields except the 7th (starting from 0) -> the datetime.
i try to get a string from the datetime field with:
Local dataReg:String = TDBDateTime(record.value(7)).format("%Y-%m-%d %H:%M:%S")
No compile errors.
At runtime "Unhandled Exception: Attemp to access field or method of Null object" at that line.
Why is there this error?