Greg, 

    Your suggestion is fine, my head is a little (may be a lot) bit confused between C++, Javascript, Delphi and FoxPro. Often I write the code that pop up first. Sometimes the code just do not responde the way I expect. For example setValidator function for an XLineEdit, if you put the setValidator in the Set function it just make the field read only but if you put it on the initialization after the includes, it works fine. 

Suggestions are well received.