Very cool, other than the check box appear to e locked or read-only on the
form.  But at least the code does not crash now!  AND THAT IS PROGRESS!

 

David.

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Downall
Sent: Friday, December 05, 2008 3:58 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Back to the world of rBase!

 

David,

 

Welcome! It would take you less than a minute in R:BASE, too, if you already
knew how to do it!

 

You'll have to find your way to the "properties" for your controls and
objects. A right-click is one way. 

 

Be sure your check box control has a sensible "Component ID" in the
properties, e.g. "CheckBox1" 

Be sure your shape (or enhanced panel) also has a different component id,
e.g. "Rectangle1"

 

Find the "EEPS", tab, and edit the "on click" eep.

 

Put these commands in:

 

SET VAR vCheckBoxStatus TEXT

GETPROPERTY CheckBox1 CHECKED 'vCheckBoxStatus'

IF vCheckBoxStatus = 'TRUE' THEN

  PROPERTY Rectangle1 BORDERCOLOR 'RED'

ELSE

  PROPERTY Rectangle1 BORDERCOLOR 'GRAY'

ENDIF

 

This works for an Enhanced Panel as your rectangle. If you use a "Shape"
object, then instead of BORDERCOLOR use PEN_COLOR

 

Mr. Buckley has a really cool R:BASE desktop application called R:DOCS that
lets him look up and build every possible property or getproperty syntax.
You'll have it, too, after you attend a "Super Advanced" R:BASE Training. In
the meantime, you can get the equivalent at these URLs:

 

http://www.rbase.com/property/property.php

http://www.rbase.com/getproperty/getproperty.php

 

Bill Downall

 

On Fri, Dec 5, 2008 at 3:36 PM, David R Haslam <[EMAIL PROTECTED]> wrote:

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

 

 

Reply via email to