# String Format

**URL:** <https://forum.servoy.com/t/string-format/3671>\
**Category:** Classic Servoy\
**Created:** [February 11, 2005, 2:36pm UTC](https://forum.servoy.com/t/string-format/3671 "2005-02-11T14:36:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Odysseus](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Odysseus](https://forum.servoy.com/u/Odysseus)\
**Post date:** [February 11, 2005, 2:36pm UTC](https://forum.servoy.com/t/string-format/3671/1 "2005-02-11T14:36:46Z")

</div>

Looking for a way to format this string

439107828105 this is a bank account nr and should look like this

439-1078281-05

tried working with # but that only seems to be working in a number field, and this is a text field

Or is the only way the tools plug-in. Found a reference to this while looking for a solution

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [February 11, 2005, 4:43pm UTC](https://forum.servoy.com/t/string-format/3671/2 "2005-02-11T16:43:04Z")

</div>

Doing this with # won’t do the trick but you should be able to mask a textfield also. Dont know the correct format though.

You can google for javascript+mask…

My tools plugin won’t help you (good idea btw) in this case I guess…

---

<div class="post-metadata">

**Author:** ![airmark](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@airmark](https://forum.servoy.com/u/airmark)\
**Post date:** [February 11, 2005, 5:02pm UTC](https://forum.servoy.com/t/string-format/3671/3 "2005-02-11T17:02:27Z")

</div>

Johan posted the following in another thread.

for textfields you can use these now:

> **[MaskFormatter (Java 2 Platform SE 5.0)](https://docs.oracle.com/javase/1.5.0/docs/api/javax/swing/text/MaskFormatter.html)**

Original Thread: [From toUpperCase to toOriginalCase - Classic Servoy - Servoy Community](http://forum.servoy.com/viewtopic.php?t=3525&highlight=mask&sid=0a59bdd510949bc9b5fb0fcc309f815e)

---

<div class="post-metadata">

**Author:** ![Odysseus](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Odysseus](https://forum.servoy.com/u/Odysseus)\
**Post date:** [February 11, 2005, 5:08pm UTC](https://forum.servoy.com/t/string-format/3671/4 "2005-02-11T17:08:23Z")

</div>

THX,

but will have to wait until 2.2 is production ready so it seems.

---

<div class="post-metadata">

**Author:** ![bcusick](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bcusick](https://forum.servoy.com/u/bcusick)\
**Post date:** [February 11, 2005, 6:39pm UTC](https://forum.servoy.com/t/string-format/3671/5 "2005-02-11T18:39:12Z")

</div>

Yes, that is true - it’s in 2.2.
