<pre>on doToParts  ---  if the number of cd flds > 0 then    repeat with y = 1 to the number of cd flds      -- doTo cd fld y    end repeat  end if  ---  if the number of cd btns > 0 then    repeat with y = 1 to the number of cd btns      -- doTo cd btn y    end repeat  end if  ---  ---  if the number of bg flds > 0 then    repeat with y = 1 to the number of bg flds      -- doTo bg fld y    end repeat  end if  ---  if the number of bg btns > 0 then    repeat with y = 1 to the number of bg btns      -- doTo bg btn y    end repeat  end if  ---end doToParts</pre>