Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check Box values
Message
From
04/12/1997 13:03:26
 
 
To
04/12/1997 12:58:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00063840
Message ID:
00063859
Views:
60
Looking further at this, is it possible to have more than one checkbox checked? If so, by setting got_a_bite=1 and then testing IF got_a_bite will cause this problem.

>>* -- start code
>>m_filter = ""
>>got_a_bite = .f.
>>
>>if thisform.chk_one.value = 1
>> m_filter = "myfld = '1'"
>> got_a_bite = .t.
>>endif
>>
>>if thisform.chk_two.value = 1
>> if got_a_bite
>> m_filter = m_filter + " or "
>> endif
>> m_filter = m_filter + "myfld = '3'"
>> got_a_bite = 1
>>endif
>>
>>if thisform.chk_three.value = 1
>> if got_a_bite
>> m_filter = m_filter + " or "
>> endif
>> m_filter = m_filter + "myfld = '7'"
>> got_a_bite = 1
>>endif
>>?m_filter
>>* -- end of code
>>thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform