• DDL (getting rusty)

    From =?UTF-8?Q?Henrik_Paludan=2DM=C3=B8r@21:1/5 to All on Mon Mar 20 06:36:11 2023
    i am looking to create a DEF which contains earlier DEFS, stored already in the DICT.

    DEF
    custname TYPE *.
    custaccount TYPE custaccount.
    custadrs TYPE adrsrec.
    end.

    where custadrs is really a RECORD used in a file.

    so that the resulting DEF is in fact sort of nested.
    This does not seem to work, and i am sure i misunderstand something.

    What have i forgotten? (this time around...)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Randall@21:1/5 to All on Mon Mar 20 18:39:42 2023
    On Monday, March 20, 2023 at 9:36:13 a.m. UTC-4, Henrik Paludan-Mørk wrote:
    i am looking to create a DEF which contains earlier DEFS, stored already in the DICT.

    DEF
    custname TYPE *.
    custaccount TYPE custaccount.
    custadrs TYPE adrsrec.
    end.

    where custadrs is really a RECORD used in a file.

    so that the resulting DEF is in fact sort of nested.
    This does not seem to work, and i am sure i misunderstand something.

    What have i forgotten? (this time around...)

    I do not think you can reference a RECORD as a DEF type. Your RECORD should be defined in terms of a DEF, and then reference that DEF in another DEF. Don't forget the ?DICT statement to open the existing dictionary.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)