Marc's Place


FN_E$CDSC - Condense City names

Inclusion in RPG source




Input Parameters

@CDSC (a65)
Field in which a name of a city must be stored prior to the call to E$CDSC.

Output Parameters

@CDSC (a65)
Field in which the formatted city name is stored after processing by E$CDSC.

What it does

Removes '-', '/' and ',' from the string, reduces white space to a single space-character, and concatenates all remaining characters into a new string.


C                     MOVELCITY      @CDSC            'AMSTERDAM / WEST'
C                     EXSR E$CDSC
C                     MOVEL@CDSC     #FIELD           'AMSTERDAM WEST  '
Go to download page
© 1997- Marc Vos (and others)   -   Privacy Statement   -    Contact Me

On this website, Google Analytics is used to track visitor statistics. These are anonymised data about the number of visitors, which pages they visit on this site, from which regions they visit, which web browsers they use, etc.. You will also see non-personalised ads via Google AdSense. Cookies from Paddle or Paypal are placed when you click on a 'Buy now!' or 'Donate!' button, and possible cookies from Disqus when you use that system to comment on one or more blogposts.
Privacy Statement