BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using TDBCheckBox in IBX

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
TerryC
Guest





PostPosted: Sun Dec 17, 2006 5:45 am    Post subject: Using TDBCheckBox in IBX Reply with quote



OK, I can get my TDBCheckBox to READ and SHOW the current value
of a field in my Interbase database, but it doesn't seem to want
to WRITE the value.

How does one set the ValueChecked and ValueUnchecked properties
so it will WRITE the correct value to my field? The field I am
using is a CHAR(1) field, constrained with a CHECK to be
IN('T', 'F').

Does it need to be a numeric field for that control to work?

Thanks!
Back to top
Wayne Niddery [TeamB]
Guest





PostPosted: Sun Dec 17, 2006 10:41 pm    Post subject: Re: Using TDBCheckBox in IBX Reply with quote



TerryC wrote:
Quote:
OK, I can get my TDBCheckBox to READ and SHOW the current value
of a field in my Interbase database, but it doesn't seem to want
to WRITE the value.

How does one set the ValueChecked and ValueUnchecked properties
so it will WRITE the correct value to my field? The field I am
using is a CHAR(1) field, constrained with a CHECK to be
IN('T', 'F').

Does it need to be a numeric field for that control to work?

No, set the ValueChecked/UnChecked properties to T and F respectively.
--
Wayne Niddery - Winwright, Inc (www.winwright.ca)
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
Back to top
TerryC
Guest





PostPosted: Tue Dec 19, 2006 2:29 am    Post subject: Re: Using TDBCheckBox in IBX Reply with quote



"Wayne Niddery [TeamB]" <wniddery (AT) chaffaci (DOT) on.ca> wrote:
Quote:
Does it need to be a numeric field for that control to work?

No, set the ValueChecked/UnChecked properties to T and F
respectively.

Thanks. I thought I had tried that, but it seems not.

-Terry
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.