>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Thanks for that. That'll do the job. I was hoping that there would be an easy way to create a form property, without resorting to public variables, but I'll cope with this.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Actually, Peter, it's not really a Public variable (not in the VFP sense, if that's what you are used to). It is a public *property*, similar to the default scope of properties in VFP (that is, not protected or hidden). The Public keyword is scoped within the Form or class that includes the reference.
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell