Top-level function parseFloat() might do the trick. You may need to pass it a substring if your text input has a leading currency character.
--- In [email protected], "headjoog" <[EMAIL PROTECTED]> wrote: > > I'm stuck and making a dunce appeal - this can't be as difficult as I'm > making it: > > I have a Data Grid and a Form. When an item is selected on the Data > Grid, it displays the selected item on the Form for editing. > > I'm using <mx:Binding> so changes on the form are reflected in the > grid. With straight text values, life is good - it works fine. > > One column in the grid is a Number (actually currency) and when I try > to include that I get a type coercion error. (I'm saving this back to a > database via Hibernate where the column is a number). I tried to use > Number(txtInput.text) in the <mx:Binding> "destination" tag and it > works, but I lose precision on the Number - it won't save decimals. It > acts weird - when I type a decimal, it takes it, then backs it out if I > type more numbers. > > I'm stuck on this conversion of the TextInput to a Number. Do you have > to convert the <TextInput> to a Number via a function? Can someone > clue me in? > > Thanks -joe >

