Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox dilemma
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01470600
Message ID:
01470840
Views:
102
Now that I got it to work, there is a side issue. The user can hit RETURN to cycle thru all of the controls on the form, textboxes mainly, but now I want to exclude this chkbox from getting the focus, I tried no default and also issue a RETURN .F in its WHEN event but it still gets executed.

>>>>IF EMPTY(thisform.txtdate_proc.Value) OR (thisform.txtdate_proc.Value="NA")
>>>>thisform.txtdate_proc.Value =thisform.txtdate_rec_j.Value
>>>>thisform.txtdate_del.Value =thisform.txtdate_rec_j.Value
>>>>thisform.txtdate_insp.Value =thisform.txtdate_rec_j.Value
>>>>ENDIF
>>>>
>>>>following code does not work, above does.
>>>>
>>>>IF thisform.txtdate_proc.Value =thisform.txtdate_rec_j.Value AND thisform.txtdate_del.Value = thisform.txtdate_rec_j.Value;
>>>>AND thisform.txtdate_insp.Value = thisform.txtdate_rec_j.Value
>>>>thisform.txtdate_proc.Value = " "
>>>>thisform.txtdate_del.Value = " "
>>>>thisform.txtdate_insp.Value = " "
>>>>ENDIF
>>>
>>>
>>>if thisform.chkSetTextboxes.value = 1
>>>  store thisform.txt1.value to ...
>>>else
>>>  store 'N/A' to ..
>>>endif
>>
>>works perfect, I didn't know you could check for the value of the checkbox in its click event.
>
>If it's in the Click event of the checkbox, we need to just check
><pre>
>if this.value = 1
>   ...
>else
>  ...
>
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform