[aida] How to add an input field for a float?

Herbert König herbertkoenig at gmx.net
Mon Mar 16 09:32:46 CET 2009


Hi,

in:
e newCell addInputFieldAspect: #vorgabeMasse for: self observee selectedPosition

selectedPosition vorgabeMasse returns a Float. If I input '0.0' into
that field and submit, vorgabeMasse contains a String.

If the field would contain an integer the same code would work as
expected (vorgabeMasse would contain an integer afterwards).

I thought that would be the job of AIDAAspectAdaptor but didn't find
any code to make the magic happen :-))

Should I just convert the string in my input validation or is there a
way to input floats directly?

Thanks,

Herbert                          mailto:herbertkoenig at gmx.net



More information about the Aida mailing list