Subject |
Re: insert dash after N characters in a strings |
From |
Ivar B. Jessen <nospam@nospam.com> |
Date |
Mon, 25 May 2015 09:53:52 +0200 |
Newsgroups |
dbase.getting-started |
On Mon, 25 May 2015 03:15:48 -0400 kent
Sender: kent <gkent_28@yahoo.com>
wrote the following in:
Newsgroup: dbase.getting-started
Subject: insert dash after N characters in a strings:
MessageID:<G7BsfqrlQHA.192@ip-AC1E04A7>
>I have this project where i want put dashes in every characters;
>
>I want that whenever i type on a certain entryfield the system will automatically put dashes in it.
>
>like 999WYZ999 TO 999-XYZ-999-000 - also 3 zeros will be automatically added ...
>
>or 999WWXX44E = 9-99W-WXX-44E
>
In the first example you insert a dash for every three characters in the string
and add a dash followed by three zeros.
In the second example you add a dash after the first character of the string and
then a dash for every three characters, but you do not add a dash followed by
three zeros.
In order to get any help you need to explain clearly the rule(s) you follow for
inserting dashes and zeros in the first and second examples.
Ivar B. Jessen
|
|