At the moment I have changed the field from EditInt to EditString, create the converter (see below) and "bound" the converter to the EditString, but this crashes the application.
Thanks,
gio
ConvertOrderNumber c;
order_number.SetConvert(c); //<-- order_number is the EditString in the .lay file
struct ConvertOrderNumber : Convert{
Value Format(const Value &q) const
{
String input=AsString(q);
return input.Left(2)+"."+input.Right(input.GetCount()-1);
}
};
Well, this obviously has to crash for some values of q.... Like < 100