Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enable and Disable Inlist
Message
From
05/10/2005 11:44:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01056317
Message ID:
01056318
Views:
20
>I am trying to make an application fool proof by enabling and disabling using:
>IF THIS.Value= 1
> THISFORM.PAGEFRAME1.PAGE3.TXTFSTNAME2.ENABLED=.F.
>ELSE
> THISFORM.PAGEFRAME1.PAGE3.TXTFSTNAME2.ENABLED=.T.
>ENDIF
>
>However I have 46 Txt boxes to disable if the user answers 1. Is there a way to put all these into an Inlist()?

Check SetAll(). ie:

THISFORM.PAGEFRAME1.PAGE3.SetAll('ENABLED', !(this.Value=1),'TextBox')

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform