>Cetin,
>So if I am trying to disable txtfstname and txtlstname would I say it like this?
>
>THISFORM.PAGEFRAME1.PAGE3.SetAll('ENABLED', !(this.Value=1),'TXTFSTNAME','TXTLSTNAME')?
>
>Jon
No, the syntax I sent enables/disables all textboxes that have class "TextBox" (those that are directly subclassed form Textbox class).
I think you want something different. Not all but only those which names match to a list? Something like:
lcEnabDisabList = 'TXTFSTNAME,TXTLSTNAME'
for ix = 1 to alines(aMemberNames,m.lcEnabDisabList,.t.,',')
store !(this.Value=1) to ('THISFORM.PAGEFRAME1.PAGE3.'+aMemberNames[m.ix]+'.Enabled')
endfor
PS: Inlist has a parameter count limit. Using a string like this you don't have that limit.
Cetin