home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / informix / 2424 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.2 KB

  1. Path: sparky!uunet!gumby!wupost!emory!emory!not-for-mail
  2. From: walt@mathcs.emory.edu (Walt Hultgren {rmy})
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Escape Characters in 4GL
  5. Date: 13 Nov 1992 14:34:30 -0500
  6. Organization: Emory University
  7. Lines: 21
  8. Message-ID: <1e1006INN64s@emory.mathcs.emory.edu>
  9. References: <1992Nov13.183706.2455@hpcvusn.cv.hp.com>
  10. NNTP-Posting-Host: emory.mathcs.emory.edu
  11.  
  12. In article <1992Nov13.183706.2455@hpcvusn.cv.hp.com> thaddeus@hpcvusd.cv.hp.com (Thaddeus Konar) writes:
  13. >Is there a way to send escape characters (non-ascii) from 4GL
  14.  
  15. You can do something like:
  16.  
  17.     define xc char(6)
  18.     let xc = "[", ASCII 27, "]&jB"
  19.     display xc
  20.  
  21. The possible problem with this approach is that the DISPLAY statement will
  22. append a newline to the output.  I don't know of a way to disable that at
  23. the 4GL level.  You may have to write a C function callable from 4GL that
  24. uses one of the variations of putc() or puts().
  25.  
  26. Walt.
  27.  
  28. -- 
  29. Walt Hultgren              Internet: walt@rmy.emory.edu       (IP 128.140.8.1)
  30. Emory University               UUCP: {...,gatech,rutgers,uunet}!emory!rmy!walt
  31. 954 Gatewood Road, NE        BITNET: walt@EMORY
  32. Atlanta, GA  30329  USA       Voice: +1 404 727 0648
  33.