Edward,
Thanks for your advises.
I don't want to switch into grid, because there is no table associated with zipcode. How can I implement any number of rows, if I don't know how many codes they want to type? What would be a record source for this grid? If I understand you correctly, I need to add new row, when a user hits enter, right? Would be tough to create this class.
I want to use an edit box to create a criterion for query. For example, a user types:
01235
01236
etc.
and my criterion would be inlist(zipcode,"01235,01236").
I already created a class btcc_edit, which has btc_whereexp(), which returns this criterion, and btcc_statesave method, which should save current state of the editbox (enablement and value). As I wrote, I found, that I can't just use simple assign method, because a macro command gives me an error while execution.
So, there is my problem. Is there a way to assign line by line the value of an editbox? If so, I can create a method for this, and in statesave method invoke it.
As for the input mask problem, I can write a code in the editbox valid method, but it's not a simple solution.
May be, such control already exists.
What could you suggest?
If it's not broken, fix it until it is.
My Blog