Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Phantom fields in single-line screen array gives spurious error  (Read 8095 times)
Andrew C.
Posts: 48


« on: June 17, 2010, 05:54:14 am »


The following style of code results in a form compile error:

Code
  1. database formonly
  2.  
  3. layout
  4. grid
  5. {
  6.   [A1    ][A2        ]
  7.  }
  8. end
  9. end
  10.  
  11. attributes
  12.  
  13. phantom formonly._seqno type integer;
  14.  
  15. A1 = formonly.key type integer;
  16. A2 = formonly.value type char;
  17.  
  18. instructions
  19.  
  20. screen record pha[1] (formonly._seqno, formonly.key, formonly.value)
  21.  

however if the [1] is changed to [2] (plus adjust the grid to have another row) the error does not happen.

Contents of the .err file is:

Code
  1. screen record pha[1] (formonly._seqno, formonly.key, formonly.value)
  2. # At least one member of the SCREEN RECORD 'pha' must not be a PHANTOM field.
  3. # See error number -6831.
  4.  

Version of BDL is 2.20.09
Sebastien F.
Four Js
Posts: 509


« Reply #1 on: June 18, 2010, 01:58:22 pm »

Andrew,

May I suggest that you give a try to version 2.21?
I cannot reproduce the error with 2.21.06 ...

Seb
Andrew C.
Posts: 48


« Reply #2 on: June 21, 2010, 02:00:22 am »

OK, I'll have a try. We're planning to release with 2.20 since we've been developing using it for the last 6 months. However we've got at least 4 months to go before that release so it's probably a good idea to jump forward now before it's too late.

Anyway, I'll let you know how the test goes on the little demo program and my real ones! The demo code was trivial so your result is quite clear-cut, I expect I'll see the same
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines