View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
>>When I was creating the HTML by hand I would put in <%= iif(lEditMode,"","DISABLED") %> inside the INPUT tag. 
Is that what I will have to do here also ?<<
That's the way I do it, with lEditMode having the values ADD,EDIT or VIEW.  If you find a neater way, please let me know.
I would, however, place the IIF() in a short-named UDF a) to save typing (I'm lazy), b) if the function changed, you would only have to change it once, not for every field.
If the HTML control is to be directly bound to an existing variable or field, I also dynamically create the 'name' and 'size' and 'value' arguments using a UDF.