According to the docs:
    get collection array(session;"StructureEntities";$entities)

Has been superceded by:
    session{"StructureEntities"}

So, why doesn't  $entities:=Session{"StructureEntities"}   work?

When run, $entities is not an array.  Seems like it should be...

I agree, it seems like it should be, but arrays in 4D are not single objects that are assigned. Remember, Active4D is still the 4D language (albeit an extended form). If you assign an array to a variable in 4D you just assign the current value of the array (a longint).

You have to use 'copy array' to do what you are trying to do above.


And while I'm learning, should there be added syntax to make
    writebr('session{"StructureEntities"}{$ii}')

work correctly?

Yes, now that you mention it, that should work.


  As I am iterating over the array with a for loop, I get:
    session{"StructureEntities"}{1}
    session{"StructureEntities"}{2}
    session{"StructureEntities"}{3}
    session{"StructureEntities"}{4}
Does string interpolation not evaluate through the collection?

Currently interpolation only recognizes the built in collections _form, _query, _request, and globals. To use any other expressions enclose them in ``.

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/

Reply via email to