Thread View: borland.public.cppbuilder.database.multi-tier
3 messages
3 total messages
Started by Jason Summers
Sun, 21 Jan 2001 01:44
Testing a empty date field
Author: Jason Summers
Date: Sun, 21 Jan 2001 01:44
Date: Sun, 21 Jan 2001 01:44
12 lines
1259 bytes
1259 bytes
I'm using an Interbase table, and have a field called field called "DOS" and
it's a date field. How do i check if it's an empty date field. This code
doesn't seem to work
if (DMOD->tableName->FieldByName("DOS")->Value != NULL) {
// it should be an empty date field
} else {
// it's not empty
}
Thanks for any help in advance
Jason
Re: Testing a empty date field
Author: Jason Summers
Date: Sun, 21 Jan 2001 01:54
Date: Sun, 21 Jan 2001 01:54
7 lines
1122 bytes
1122 bytes
Sorry, had a little typo in the comments
if (DMOD->tableName->FieldByName("DOS")->Value != NULL) {
// it should not be empty
} else {
// it should be empty
}
Re: Testing a empty date field
Author: Neo
Date: Thu, 25 Jan 2001 20:45
Date: Thu, 25 Jan 2001 20:45
18 lines
1193 bytes
1193 bytes
try:
if (DMOD->tableName->FieldByName("DOS")->IsNull)
Neo
Jason Summers <jason@grinc.org> wrote in message news:3a6a414b$1_1@dnews...
> Sorry, had a little typo in the comments
>
> if (DMOD->tableName->FieldByName("DOS")->Value != NULL) {
> // it should not be empty
> } else {
> // it should be empty
> }
>
>
>
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads