David,
Place your objects and be certain to assign a component ID to the rectangle
(use a shape object.) For the (variable) checkbox, set up an "on click" eep
that does this:
IF varname = 'TRUE' THEN
PROPERTY [componentid] COLOR truecolor
ELSE
PROPERTY [componentid] COLOR falsecolor
ENDIF
RETURN
In the above, substitute your variable name that is assigned to the checkbox
for 'varname' and the component ID you assign to the rectangle for
[componentid].
If you use a db checkbox, then you'll have to use GETPROPERTY to get its
current state (checked or not) into a variable and then do as above.
Emmitt Dove
Manager, DairyPak Business Systems
Evergreen Packaging, Inc.
[EMAIL PROTECTED]
(203) 214-5683 m
(203) 643-8022 o
(203) 643-8086 f
[EMAIL PROTECTED]
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of David R
Haslam
Sent: Friday, December 05, 2008 3:36 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Back to the world of rBase!
Hello Everyone!
My name is David Haslam, and I just wanted to introduce myself. I am
working with Paul Buckley here in Plymouth MI on various rBase projects. I
must say, I'm very excited about the projects ahead.
Back in 1987 / 1988 time frame, I was Application Engineering Manager for
ACE Controls in the UK. I was creating some new databases to manage the
engineering work, and I selected rBase as the tool of choice. I was
extremely happy with it. Last time I used rBase was around 1992 here in the
US (I moved to Michigan 20 years ago). Since then, Access, SQL Server, and
VB have been 90% of my development career. But, I'm happy to be back.
I also have a technical question, as I'm newly "born again" to rBase.
I want to create a form with a check box and a rectangle on it. I want the
rectangle to be one color if the check box is true, and switch to a second
color if the check box is false. It must change color whenever the check
box is clicked. Initially, for the testing, the check box does not need to
be linked to a field in a table. In Access or VB it would take me less than
a minute to do the whole thing. But, I've been racking my brains because I
don't know the structures and syntax in rBase yet.
Any help any one can give would be much appreciated!
All the best,
David.
David R Haslam
Vice President, Business Development
HMSI, inc.
734.259.0387 (W)
734.775.4555 (C)
www.HMSI-inc.com
"OPTIMISM TODAY LEADS TO A BETTER TOMORROW." - Candace B. Pinaud