Hello

I have a special situation.

The System generates at startup a complex structure in global collections. I call it now "global system collection". User can log in my System. They have Session, and global collections, so informations will not get lost between requests. The "global user-collection" can reference to the "global system- collections".

If the user logout of the system, i recursive delete his "global user- collection". But then the referenced "global system collections" will be deleted too. Which is wrong.

So one technic is, to reference the "global system collections" with a String. $myUserCollection{"refToSomething"}:=STRING($systemCollection {"dontDeleteMe"})

A other technic could be to give the "global system collection" names like "_dontDeleteMe" and in the recursive collection-delete-method only delete collections which are not start with "_". for this it would be nice to have the command use deep clear collection in this way. deep clear collection($myUserCollection;"_") // dont delete collections which start with "_"

Is there a better technic to protect my "global system collections", ore wich is the better one. String or "_" ?

Regards,
Oliver


_______________________________________________
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