home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / informix / 1905 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  4.3 KB

  1. Path: sparky!uunet!destroyer!gatech!emory!pdact.pd.necisa.oz.au
  2. From: ronl@pdact.pd.necisa.oz.au (Ron Lees)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Where's my Reverse field
  5. Message-ID: <9506@emory.mathcs.emory.edu>
  6. Date: 10 Sep 92 00:48:04 GMT
  7. Sender: walt@mathcs.emory.edu
  8. Reply-To: ronl@pdact.pd.necisa.oz.au (Ron Lees)
  9. Lines: 117
  10. X-Informix-List-ID: <list.1436>
  11.  
  12. I have already mailed the following reply direct to Bruce, but given
  13. the diversity of some of the other replies I thought post it and some
  14. further comments as well.
  15. There is definitely something screwy with this REVERSE attribute.
  16.  
  17. Bruce wrote:
  18.  
  19. >I have a field on a form I have specified as REVERSE, but it just comes
  20. >up blank.  I know Informix knows about the reverse video on my terminal
  21. >because my menus come up reverse.  In fact, I have some Informix
  22. >executable from another person and its fields are reverse.  Does anyone
  23. >know why this is happening?  Below is my form description file.
  24. >
  25. >I have tried this from the console, from an xterm, and from a vt220. 
  26. >None work.  I am just starting out and this is my first form.
  27. >
  28. >------------------------------------------------------------------------
  29. >
  30. >database formonly
  31. >screen
  32. >{
  33. >            Summary of Client/Matter Activity
  34. >            
  35. >            
  36. >        As-of Period [a]
  37. >                
  38. >}
  39. >end
  40. >attributes
  41. >a = formonly.begdt TYPE CHAR, REVERSE;
  42. >end
  43. >instructions
  44. >delimiters "<>";
  45. >end
  46. >                
  47. >
  48. >-- 
  49. >Bruce Momjian                      |  830 Blythe Avenue
  50. >root%candle.uucp@bts.com           |  Drexel Hill, Pennsylvania 19026 
  51. >                                   |  (215) 353-9879(w)  853-3000(h)
  52.  
  53. To which I replied:
  54. |WOMM (Works On My Machine :-)
  55. |
  56. |Bruce, I tried your form out using xterm, ansi, vt220 and vt100 on a 486
  57. |running SCO ODT and Informix 4.00. It worked fine.
  58. |
  59. |However, you are using "<>" as delimiters, which is what Informix uses
  60. |if it thinks it can't display reverse video.  So perhaps you could
  61. |try using other delimiters and see whether you still get < > displayed.
  62. |It doesn't solve your problem directly, but it might tell you whether
  63. |Informix might be using some other terminal type.
  64. |
  65. |BTW do you have your INFORMIXTERM set to terminfo or termcap? Mine was
  66. |set to terminfo.
  67. |
  68. |Good luck.
  69.  
  70. Bruce was using terminfo.
  71.  
  72.  
  73. Dave Synder replied that he didn't use attributes in 4GL forms. I'd be
  74. interested to know if his solution works. I've never used syscolatt...
  75.  
  76. }table.  Can you put attributes in the form specification file?
  77.  
  78. Sure can.
  79.  
  80. Michael Gordon <maint72@saad-emh1.ARMY.MIL> wrote:
  81. :Your form looks good with the exception of the ATTRIBUTES line a =
  82. :I don't know about using data field types in the attributes code, try
  83. :this modification:
  84. :
  85.  
  86.  
  87. Field types can be used.
  88.  
  89.  
  90. David Cortesi (cortesi@informix.com) wrote:
  91. ]> delimiters "<>";
  92. ]  ^^^^^^^^^^^^^^^ this is your problem!!!
  93. ]> end
  94. ]
  95. ]I ran your form on the handiest thing, a Sparc, and as you say,
  96. ]the field was not reversed but plain.
  97. ]
  98. ]Then I noticed in the manual where it says, (page 4-51)
  99. ]"on terminals that do not support reverse video, fields
  100. ]having the REVERSE attribute are enclosed in angle brackets (<>)"
  101. ]
  102. ]So I thought, hmmm, wonder if 4GL is trying to use angle
  103. ]brackets, and it doesn't show because he has set angle brackets
  104. ]manually?   So I changed the form to read: delimiters "{}" and
  105. ]lo & behold! The field came up in nice reverse video!  
  106. ]
  107. ]I can't figure out if this should be called a bug or a
  108. ]documentation error! It is screwy enough for a bug, yet the
  109. ]screwiness has a certain air of logic to it, somehow...
  110. ]anybody know more?
  111.  
  112. Nope, "<>" isn't _always_ the problem. As I discovered it works fine
  113. on my configuration, but obviously not on David's Sparc.
  114.  
  115. I tried "||" and "[]" using the same reasoning and all three forms worked OK. 
  116.  
  117. So, Informix, what's the story? It looks like the exact specification
  118. of REVERSE with "<>" is not clear and as a result the implementation
  119. differs across various ports.
  120.  
  121. +-------------------------------------------------------------------------+
  122. Ron Lees                                        rlees@pdact.pd.necisa.oz.au
  123. Software Development Centre (Canberra)                 Voice: +61-6-2516411
  124. NEC Information Systems Australia Pty Ltd                Fax: +61-6-2516947
  125. PO Box 244, Belconnen ACT 2616, AUSTRALIA                  A.C.N. 002068546
  126. +-------------------------------------------------------------------------+
  127.