home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / informix / 2920 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!gossip.pyramid.com!pyramid!infmx!aland
  2. From: aland@informix.com (Colonel Panic)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: CONSTRUCT/END CONSTRUCT within INPUT statement
  5. Keywords: CONSTRUCT
  6. Message-ID: <1993Jan9.035454.946@informix.com>
  7. Date: 9 Jan 93 03:54:54 GMT
  8. References: <jean.726402411@aim1>
  9. Sender: news@informix.com (Usenet News)
  10. Organization: The Island of Unwanted Toys
  11. Lines: 41
  12.  
  13. In article <jean.726402411@aim1> jean@aim1.aztec.co.za (Jean Ramsay) writes:
  14. >According to the TOOLREL_4.1 document for i4GL an END CONSTRUCT statement
  15. >is now required when using CONSTRUCT within an INPUT statement when using 
  16. >version 4.1 of i4gl. (See lines 377,392)
  17.  
  18. I *think* that END CONSTRUCT is only required when you use ON KEY, BEFORE
  19. FIELD, or AFTER FIELD between the CONSTRUCT and the END INPUT.  (Because:
  20. the AFTER/BEFORE FIELD or ON KEY would be assumed to apply to the CONSTRUCT,
  21. not the INPUT).
  22.  
  23. >A program containing this code, which works using release i4gl 4.0,
  24. >fails to execute the INPUT BY NAME ...  WITHOUT DEFAULTS correctly (it 
  25. >appears to ignore the WITHOUT DEFAULTS, blanking out all fields) when run 
  26. >without the END CONSTRUCT statement on i4gl 4.1. 
  27.  
  28. Whoa.  Is this INPUT, or INPUT ARRAY?  If INPUT ARRAY, this is probably Bug
  29. #10522 et al, and is unrelated to the CONSTRUCT syntax issue.  If you are
  30. using 4.10.UC1 or .UD1, you will definitely see this bug.  Otherwise, check
  31. the release/ directory for bugfixes included in the port.
  32.  
  33. >However it gives a generic
  34. >syntax error at compile time when the END CONSTRUCT is added.  
  35.  
  36. This shouldn't happen.  Are you sure you are compiling with the 4.1 compiler?
  37.  
  38. >Has anybody had this problem with i4gl 4.1? I am aware of the supposed
  39. >restriction disallowing a CONSTRUCT within an INPUT statement, but the
  40. >program did not require the CONSTRUCT to be within another function
  41. >under version 4.0. Any help would be appreciated. 
  42. >-- 
  43. >Jean Ramsay             jean%aim1.aztec.co.za@ucthpx.uct.ac.za
  44. >Aztec Information Management, Cape Town, South Africa
  45.  
  46. The only danger is the ambiguity I discussed above.  Otherwise, pre-4.1 code
  47. is forward-compatible without changes.
  48.  
  49. --
  50. Alan Denney      aland@informix.com      {pyramid|uunet}!infmx!aland
  51.  
  52. "For they looked in the future, and what did they see
  53.  They saw an iron road running from the sea to the sea."  -- Gordon Lightfoot
  54.