Cetin,
If you put this code in the interactivechange(), wouldn't you get, for an input of "1234",
1+1+2+1+2+3+1+2+3+4 ?
i.e. the len(trim(this.value) would be 1 then 2 then 3 etc., with each keystyroke. I agree it would be fine in the lostfocus().
Terry
lcValue = ""
for ix=1 to len(trim(this.Value))
lcValue = lcValue + '+' + substr(this.Value,m.ix,1)
endfor
thisform.textbox2.value = eval(m.lcValue)
PS: It would work for single digits only and no negative values (ie:32 is interpreted as +3+2).
Cetin
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.