>And for the lazy people who realize that if checks a logical condition:
>
>thisform.cmdButton1.Enabled =
{condition where button should be enabled}I like that syntax too. In a highly populated form, though, there may be a lot of controls to enable or disable in the refresh method. If the same condition applies to most or all of the controls whose state we want to change, then the if... else... syntax has the advantage of evaluating the condition only once overall vs. evaluating it once for each control. Would you notice the difference in performance? Probably not, but it's still something to consider when deciding how to write the code.
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.