Given the following:
array text($foo;2)
$foo{1}:="foo"
$foo{2}:="bar"
$Collection_B:=new global collection("foo_B";$foo)
$Collection_A:=new global collection("test_A";current time)
$Collection_A{"Collection_B"}:=copy collection($Collection_B;*)
My question is; is it possible to directly get the value of
Collection_B{"foo_B"}{2} (in this example = "bar") without having
to copy Collection_B out of Collection_A first?
$value:=$Collection_A{"Collection_B{"test_B"}{1}"} does not work.
The syntax is wrong. Indexing ({}) is scanned left to right, not in a
nested way, just as it is in 4D. The syntax should be:
$value := $Collection_A{"Collection_B"}{"foo_B"}{1}
$Collection_A{"Collection_B"} resolves to $Collection_B. Then you are
just indexing within $Collection_B.
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/