Back to Four Js Website
Four Js Customer Forum
Subscribe for automatic updates:
RSS
Sign in for full access
|
Help
Four Js Development Tools Forum
>
Discussions by product
>
Genero BDL
>
recursive type definition
Most recent posts
Pages: [
1
]
« previous
next »
Reply
|
Print
Author
Topic: recursive type definition (Read 7459 times)
Lu?s T.
Posts: 39
recursive type definition
«
on:
January 05, 2022, 05:14:59 pm »
Is it possible to dfeini recursive type?
What I need to do is something like:
Code:
TYPE tNode RECORD
descrption string,
descendents DYNAMIC ARRAY OF tNode
END RECORD
Leo S.
Posts: 129
Re: recursive type definition
«
Reply #1 on:
January 11, 2022, 12:24:36 am »
Hi Luis, no , not possible !
Compare it with C -> only pointers can be in a recursive definition...but we don't have pointers in a RECORD definition.
If you need to have a tree data structure where all you need for a leaf is a string I'd recommend using an om.DomDocument, the om.DomNode.setAttribute can set as many string attributes as you want per node.
Another place to look at is our Tree view samples in $FGLDIR/demo/Tree, here the trick is to work with id,parentId in a flat Genero array to be able to visualize in a Genero Tree View.
HTH and Regards, Leo
Pages: [
1
]
Reply
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
=> Ask Reuben
=> WWDC21
-----------------------------
Discussions by product
-----------------------------
=> Products announcements
=> Genero BDL
=> GWS
=> GAS and GBC
=> GDC
=> Genero Mobile for Android or iOS
=> Genero Studio
=> Reporting tools (GRW, GRE)
-----------------------------
Jobs
-----------------------------
=> Jobs
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Loading...