Thanks for this tip, never tried it that way ;)
>>Hi!
>>
>>Well, I did not tried to define expression using DEFINE CLASS. Properties editor just do not allow to set expression for ControlSource as far as I know.
>
>You can, but you have to put the whole expression in parentheses. This means you can't put an iif(condition, var1, var2) as a controlsource in the PEM window, but you can put (iif(condition, var1, var2)).
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.