🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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
#842
Author: Jason Summers
Date: Sun, 21 Jan 2001 01:44
12 lines
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
#843
Author: Jason Summers
Date: Sun, 21 Jan 2001 01:54
7 lines
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
#851
Author: Neo
Date: Thu, 25 Jan 2001 20:45
18 lines
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