🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1252

Re: Compare a BOOL

#1252
From: 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)
Technical Details
Message-ID: <3868E168.40C25402@onramp.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <84ak9s$6n618@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,729d60fd9f2f369f
X-Google-Attributes: gidfcd2b,public
From: "Jeff Overcash (TeamB)" <overcash@onramp.net>
Subject: Re: Compare a BOOL
Date: 1999/12/28
Message-ID: <3868E168.40C25402@onramp.net>
X-Deja-AN: 565701877
Content-Transfer-Encoding: 7bit
References: <84ak9s$6n618@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: TeamB
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier