I have a form that has three buttons

1. File Check
2. Run Program
3. Exit

File check does what it says, looks to see if files are present. If they
are present, it updates the chkbox/label with a CHECK.

I then want to run the program in accordance with which boxes are checked.
I tried you thisform.check.value but it doesn't work.

Is there an easy to do this. I am getting I need to pass a value at some
point?

Thanks in advance.

RE: CHECKBOX QUESTION by Leemi

Leemi
Fri Jan 30 13:24:04 CST 2004

Hi dthmtlgod:

I placed a checkbox object on a form and used this code in the Click event
of a command button to determine if the check box was checked or not:

IF thisform.Check1.Value=1
WAIT WINDOW "Checked"
ELSE
WAIT WINDOW "not checked"
ENDIF

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003



>I have a form that has three buttons

>1. File Check
>2. Run Program
>3. Exit

>File check does what it says, looks to see if files are present. If they
>are present, it updates the chkbox/label with a CHECK.

>I then want to run the program in accordance with which boxes are checked.
>I tried you thisform.check.value but it doesn't work.

>Is there an easy to do this. I am getting I need to pass a value at some
>point?

>Thanks in advance.


Re: CHECKBOX QUESTION by Marc

Marc
Mon Feb 02 09:06:35 CST 2004

dhtmlgod,

A checkbox initializes to the value set up in for it design time. A checkbox
can have either a numeric (0 or 1) or Boolean (.T. or .F.) value, it depends
on what you do in design, or if its from a foundation class etc. On your
form, check the value and change it to the data type that works for your
application.

*(Numeric Example)
IF Thisform.checkbox1.value = 1 & Box checked
ELSE
ENDIF

*(Logical Example)
IF Thisform.CheckBox1.Value
ELSE
ENDIF

HTH,
Marc


"dthmtlgod" <dthmtlgod@hotmail.com> wrote in message
news:ejGjvC25DHA.1504@TK2MSFTNGP12.phx.gbl...
> I have a form that has three buttons
>
> 1. File Check
> 2. Run Program
> 3. Exit
>
> File check does what it says, looks to see if files are present. If they
> are present, it updates the chkbox/label with a CHECK.
>
> I then want to run the program in accordance with which boxes are checked.
> I tried you thisform.check.value but it doesn't work.
>
> Is there an easy to do this. I am getting I need to pass a value at some
> point?
>
> Thanks in advance.
>
>
>
>