PDA

View Full Version : DAT Blocks



g3cwi
03-18-2012, 08:08 AM
Hi

Are these global? I want to tidy some code up and the DAT block for one object could really do with being moved to another one.

Thanks

Richard

MagIO2
03-18-2012, 10:56 AM
Maybe not as global as you think ;o)

DAT blocks are global within a single .SPIN file. So, if you have an object that includes a DAT section and you use this object in several other places, there will only be one copy of the DAT section.



OBJ
ob1: "DATcontainer"
ob2: "DATcontainer"
ob3: "SomethingElse"

...
SomethingElse.spin:
OBJ
subobj1: "DATcontainer"
...

There will only be one DAT for all, ob1, ob2 and subobj1 !

But if you copy some DAT from file A to file B you will have two copies.