Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to programatically set the Checkbox to "checked"?

218 views
Skip to first unread message

news.softvelocity.com

unread,
Apr 8, 2001, 12:10:47 PM4/8/01
to
Hi all,
How do you programitcally set a checkbox to "checked"?

I have one checkbox and a button. What embeds to I have to write in the
button to "check/uncheck" the checkbox?

--
Andrea James
Clarion Developer

Jeff Kolker

unread,
Apr 8, 2001, 12:45:22 PM4/8/01
to
If you want the checkbox check, set the value of the checkbox variable to 1
or TRUE, and to uncheck the checkbox, set the value to 0 or FALSE. What
embed to enter this depends on how and when you want to change the checkbox.

hth,
Jeff

--
Jeff Kolker
Kolker & Kolker, Inc.
~~~~~~~~~~~~~~~~~~~~~~
je...@kolkercpa.com
www.kolkercpa.com
~~~~~~~~~~~~~~~~~~~~~~
Using C55EE and a zillion third party tools
~~~~~~~~~~~~~~~~~~~~~~
"news.softvelocity.com" <andre...@mindspring.com> wrote in message
news:3ad08e20$1...@news.softvelocity.com...

Andrea James

unread,
Apr 8, 2001, 1:29:04 PM4/8/01
to
> If you want the checkbox check, set the value of the checkbox variable to
1
> or TRUE, and to uncheck the checkbox, set the value to 0 or FALSE. What
> embed to enter this depends on how and when you want to change the
checkbox.

Do you have some sample code for that?

I have tried:
?Checkbox1{PROP:CHECKED} = TRUE

but it does not work.

Ole-Morten Hein

unread,
Apr 8, 2001, 1:47:07 PM4/8/01
to
Hello
Maybe you have to use a DISPLAY() command after the prop change.

Why dont you use a locale variable?

LOC:Checkvalue
then set the USE property for the check to LOC:CheckValue

LOC:CheckValue=1 ! or true
dispay() ! Check is on

HTH

"Andrea James" <andre...@mindspring.com> skrev i melding
news:3ad0...@news.softvelocity.com...

Jeff Kolker

unread,
Apr 8, 2001, 1:54:57 PM4/8/01
to
if the variable name is checkbox1...

checkbox1 = true
display(?checkbox1)

The display command MAY not be necessary...depends on where your code is
placed.

hth,
Jeff

"Andrea James" <andre...@mindspring.com> wrote in message
news:3ad0...@news.softvelocity.com...

Kevin B. Erskine

unread,
Apr 8, 2001, 1:59:02 PM4/8/01
to
CHANGE(?CheckBoxField,TRUE)

Check online help ( F1 ) for CHANGE


"Andrea James" <andre...@mindspring.com> wrote in message
news:3ad0...@news.softvelocity.com...

Mark Riffey

unread,
Apr 8, 2001, 2:03:28 PM4/8/01
to
In the checkbox properties, you need to tell it what you consider true
and false.

I usually use 1 and 0 for true and false, respectively.

Click on the control and press enter to display the properties and
youll see what I mean.

---
Mark Riffey
Granite Bear Development
http://www.granitebear.com

Software for professional photography
studios, cultured marble / cast polymer /
solid surface manufacturers and non-profit
organizations

Kevin B. Erskine

unread,
Apr 8, 2001, 8:54:19 PM4/8/01
to
SO

CHANGE(?checkField,'Yes')
CHANGE(?checkField,'No')

CHANGE(?checkField,'On')
CHANGE(?checkField,'Off')

The Checkbox knows which is true\false -- its set in the window
properties...


"Mark Riffey" <m...@granitebear.com> wrote in message
news:VA.000013b...@granitebear.com...

Mark Riffey

unread,
Apr 8, 2001, 9:26:24 PM4/8/01
to
In article <3ad1...@news.softvelocity.com>, Kevin B. Erskine wrote:
> its set in the window
> properties...
>

That was kinda my point. She needed to check if they were set.

Ville Vahtera

unread,
Apr 9, 2001, 1:13:30 AM4/9/01
to
Isn't that too many strikes to hit? If you have set I.e variable
MyCheckBox for CheckBox control I go with the folowing:

MyCheckBox = 1 Or MyCheckBox = 0
Display()

PLEASE, why can't I use MyCheckBox = NOT MyCheckBox !!!!!!!!!!!!

Rgds,
Ville

"Kevin B. Erskine" <KErs...@Software-By-Ragazzi.com> wrote in message
news:3ad1...@news.softvelocity.com...

Eric Churton

unread,
Apr 8, 2001, 12:43:50 PM4/8/01
to
Try changing the value of the variable.

--
best wishes

Eric Churton
The Simsoft Templates for plug-in on-screen keyboards and keypads
http://www.vertigo.co.za/simplesoft/

"news.softvelocity.com" <andre...@mindspring.com> wrote in message
news:3ad08e20$1...@news.softvelocity.com...

0 new messages