home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource1 / chint / useful25.hnt < prev    next >
Encoding:
Text File  |  1993-10-28  |  1.3 KB  |  28 lines

  1. This hint specifies the fields that you would need to add to a report filter
  2. so that the user will be able to specify if their printer has the capability
  3. to print character from the extended IBM Graphics character set, (specifically
  4. the line drawing characters).
  5.  
  6. If, at runtime, the users specifies that the printer can not print these
  7. characters then all the line drawing characters will be converted to  '-','='
  8. '|'. '"', '+' and '#' to emulate the lines with standard ACSII characters.
  9.  
  10. First you should add a prompt to the filter window similar to the following :-
  11.  
  12.         Does the printer support IBM Graphics characters
  13.  
  14. Now add a new filter field to get the user response to this question:--
  15.  
  16. Field Name  Seq Typ  Mode  Pic  Validation        Error Message
  17. ----------  --- ---  ----  ---  ----------------  -------------------------
  18. GET_PMODE    1   C    E     U   choice('Y|N',{})  choose(_tts,'Y|N','Yes|No',{})
  19.  
  20.  
  21. Field Name  Seq Typ  Mode  Pic  Compute Expression
  22. ----------  --- ---  ----  ---  -------------------------------------------
  23. SET_PMODE    2   C    C     X   if (GET_PMODE[0] != 'Y') pmode = BasicChrs
  24.  
  25.  
  26. NOTE : If the output device is the "CON", (Screen), then the characters will
  27.        not undergo any conversion as it is assumed that this device supports
  28.        line characters.