🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Aster Tue, 28 Dec 1999 00:00
Compare a BOOL
#1251
Author: Aster
Date: Tue, 28 Dec 1999 00:00
12 lines
740 bytes
I would like to do something like the following:

if(Table2->FieldByName("ISCLOSED")->Value == true)
{
Do this
}

Builder does not like this comparision and gives me an error.  Can anyone
suggest a way I can check the value?

TIA
David
Re: Compare a BOOL
#1252
Author: Jeff Overcash (TeamB)
Date: Tue, 28 Dec 1999 00:00
29 lines
1205 bytes
Try

if(Table2->FieldByName("ISCLOSED")->AsBoolean == true)
{
Do this
}

Part of this will depend ion the datatype of the ISCLOSED field.

Aster wrote:
> 
> I would like to do something like the following:
> 
> if(Table2->FieldByName("ISCLOSED")->Value == true)
> {
> Do this
> }
> 
> Builder does not like this comparision and gives me an error.  Can anyone
> suggest a way I can check the value?
> 
> TIA
> David

-- 
Jeff Overcash (TeamB) 
      (Please do not email me directly unless  asked. Thank You) 
Live never to be ashamed if anything you do or say is published around the world
- even if what is published is not true.    (R Bach)
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