Skip to Content
author's profile photo
Former Member

UI: Format text in EditText Field

Hi all,

Is there a way to format the text in an EditText field easily? I am creating a field to hold an amount of money, so the field should support the format 123,45 EUR etc.

It should not allow entering values that can not be converted to an amount of money.

I am wondering if I can do this using the TextStyle property of the EditText object, but I've not been able to find any documentation on how to use it.

Best regards

Jesper Carstensen

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on May 05, 2004 at 11:32 AM

    If you create a user data source and set it's data type to PRICE (SAPbouiCOM.BoDataType.dt_PRICE), then assign the user data source to the edittext object, SBO will handle the validation and formating for you.

    Add comment
    10|10000 characters needed characters exceeded