Progress 4GL Code Samples · Index · Part 1 · 2 · 3 · 4 · 5 · Expand · Web Feed


Dealing with legacy systems, you need to convert your data all day long. For example, if you have to print UPS labels and send data to UPS via the PLD 0200 interface, you must not use any special characters you have within your international address data. This routine converts these characters to their best1 lower ASCII representation. For example '─' and 'Ă' get converted to 'Ae'. Usage:



DEF VAR cAnsiString AS CHAR CASE-SENSITIVE NO-UNDO.
DEF VAR cAsciiString AS CHAR CASE-SENSITIVE NO-UNDO.
ASSIGN cAnsiString = '─ń'.
RUN makeCleanAsciiString.p (INPUT cAnsiString, OUTPUT cAsciiString).
MESSAGE cAnsiString '==>' cAsciiString VIEW-AS ALERT-BOX.

Result: '─ń==>Aeae'

Download.



Create a UUID (Unified Unique IDentifier)Next Page

Previous PageGet a unique file name


Progress 4GL Code Samples · Index · Part 1 · 2 · 3 · 4 · 5 · Expand · Web Feed




1

I'm by no means an expert on european languages. If you can improve my character conversions, please drop me a message using the contact link on this page.




Author: Sebastian
Last Update: Friday, March 25, 2005   Web Feed

· Home

· Development

· P4GL Code

· Web Links

· Link to us

· Contact

· What's new

· Site map

· Get Help


Most popular:

· Site Feeds

· Database Design Guide

· Google Sitemaps

· smartDataPump

· Spider Support

· How To Link Properly


Free Tools:

· Sitemap Validator

· Simple Sitemaps

· Spider Spoofer

· Ad & Click Tracking



Search Google
Web Site

Add to My Yahoo!
Syndicate our Content via RSS FeedSyndicate our Content via RSS Feed



To eliminate unwanted email from ALL sources use SpamArrest!






Digg this · Add to del.icio.us · Add to Furl · We Can Help You!




Home · Categories · Articles & Tutorials · Syndicated News, Blogs & Knowledge Bases · Web Log Archives


Top of page

No Ads


Copyright © 2004, 2005 by Smart IT Consulting · Reprinting except quotes along with a link to this site is prohibited · Contact · Privacy