>>>>I have a data entry form containing percentage fields that are defined as N(4,2). I would like the users to be able to enter 100% as 100 rather than 1.00, 50% as 50 rather than 0.50, and so on. Is there some formatting option that supports this or is my only option to change the field definitions to N(3,0)? (They can never be greater than 100%).
>>>
>>>Mike,
>>>
>>>Check
Enhanced Numeric Textbox Class File #
9395>>
>>Is it really needed to use new classes for so simple thing?
>
>It isn't needed, but I've recently been working with some code I inherited.
>
>I've come across at least 15 occurances of...
>
>local m.schName, I
>m.schName = ""
>for i = 1 to len(m.tcAcctNum)
> if substr(m.tcAccNum,m.i) = " "
> m.schName = m.schName + "?"
> else
> m.schName = m.schName + substr(m.tcAccNum,m.i)
> endif
>endfor i
>
>Now. Tell me exactly how long it takes you to decipher that and exactly what it does, and even better, how you would have done it differently please.
It seems to be a ChrTran problem.
cSchname=chrtran(cAccnum,space(1),'?')
Anything else I don't quite understand, i.e. how it's related to this thread?
Edward Pikman
Independent Consultant