Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check box problem

Status
Not open for further replies.

zhed0708

IS-IT--Management
Jun 25, 2011
41
PH
how to search the value of check box if the type in the field is logical?i tried the thisform.check1.value to search it but it does not display check, but when i browse it, it is true.

zhed
 
Here you are once again (for about the 6th time in a month) - asking a question without showing us that you are making an attempt to LEARN VFP.

What have you tried on your own?

Have you even spent time looking at the VFP learning tools - such as the on-line VFP tutorial videos ( or or the books at ?

but when i browse it, it is true.

What do you mean browse it ?

Unless you have modified a Grid to show Checkboxes as a Grid Object, you do not "Browse" a Form's checkbox.
You examine its values
Code:
 * --- Find Value of Form's Checkbox ---
 lThisCheckboxValue = ThisForm.Check1.Value
{/Code}

You need to spend some time looking at the above mentioned tutorial videos and getting to understand them.
You might want to pay particular attention to:
    [B]Creating a Form Manually
    Building a Simple Application - Pt. 1
    Building a Simple Application - Pt. 2
    Building a Simple Application - Pt. 3
    Building a Simple Application - Pt. 4
    Building a Simple Application - Pt. 5
    Building a Simple Application - Pt. 6[/B]

Good Luck,
JRB-Bldr
 
Checkboxes in VFP can have either a logical or a numeric value. If you set the ControlSource to a logical field, then the checkbox values will be .T. or .F. and that's what will be stored in the field. In that case, ThisForm.Check1.Value will also be either .T. or .F.

What do you mean by "search" here?

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top