Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exception enabled text
Message
From
01/03/2006 02:32:39
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01099405
Message ID:
01100269
Views:
15
hi,
thank you,

can i make something else as under .
ThisForm.SetAll("visible", !.t., "textbox" , "combo") OR 

ThisForm.SetAll("visible", !.t., "textbox" + "combo") OR

ThisForm.SetAll("visible", !.t., "textbox" AND "combo") 
>To clarify, what I meant was you could remove the "IF" test the value, and put variable directly in the SetAll method. If the logical variable "unsewr" is true, the "!" will invert this value to false.
>like this
>
>***ThisForm.SetAll("visible", .F., "textbox")       &&&&&& remove this
>***IF unsewr = .F.                                  &&&&&& remove this
>***ThisForm.SetAll("visible", .T., "textbox")       &&&&&& remove this
>   ThisForm.SetAll("visible", !unsewr, "textbox")
>***ENDIF                                            &&&&&& remove this
>
>
>If "unsewr" is not logical, you could put an expression in its place:
>
>***ThisForm.SetAll("visible", .F., "textbox")       &&&&&& remove this
>***IF unsewr = .F.                                  &&&&&& remove this
>***ThisForm.SetAll("visible", .T., "textbox")       &&&&&& remove this
>   ThisForm.SetAll("visible", !unsewr="somevalue", "textbox")
>***ENDIF                                            &&&&&& remove this
>
>
>You said it works and that should be the end ... but I just wanted to provide this extra piece of information in case you did not understand my complete meaning.
>Regards,
>Art
>
>>thank you, it works
>>i use it for
>>ThisForm.SetAll("visible", !.f., "textbox")
>>
>>or
>>
>>ThisForm.SetAll("visible", !.t., "textbox")
>>
>>
>>>> can i make exception for first text1 at my form, and another texts
>>>> as
>>>>
>>>> Thisform.SetAll("Enabled",.f.,"textbox")
>>>> if condation unsewr no
>>>> Thisform.SetAll("Enabled",.t.,"textbox")
>>>>
>>>> thanks
>>>
>>>if unsewr is a logical variable:
>>>
>>ThisForm.SetAll("Enabled", ! unsewr, "textbox")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform