Hi Unifacers,
I am using Uniface Lists a lot either in the basic as well as the associative format. So far so good!
But what about structs and Uniface list?
We can put into our proc script code:
1) Constants.
Example:
$myStruct$->Level1->Level2{2}->Level3->$scalar
2) A single variable for each level.
Example:
vVar1 = "Level1"
vVar2 = "Level2{2}"
vVar3 = "Level3"
$myStruct$->"%%vVar1%%%"->"%%vVar2%%%"->"%%vVar3%%%"->$scalar
Do you feel the need to use a list containing the struct path to point to?
Example:
vList = ""
putitem vList, 1, "Level1"
putitem vList, 2, "Level2{2}"
putitem vList, 3, "Level3"
$myStruct$->"%%vList%%%"->$scalar
If this last syntax will be supported some of my routines will become a lot shorter and probably much faster.
I would like to know what other Uniface users feel about it.
Regards,
Gianni