Thanks.
This works,
repeat with x=1 to the number of controls in this cd
put word 1 of the name of control x into controltype
if controltype is "button" then
...
else if controltype is "field" then
...
end if
end repeat
> look in the dictionary for "controls"
> Jim Ault
> Las Vegas