got a weird little problem with the routine below.
I am saving out the individual state of each Layer in the Layerlist into the global Array "gLayerVisibilityStatus()". It works just as you would expect it to -- as long as the Layers are called the default name "Untitled Layer". As soon as I have a custom named Layer it errors out, telling me that something is wrong with the [IModGet,tmpCurrentLayerState].
I checked the Layerpath result that gets written into the Variable - looks fine to me. Any ideas ?
//-------------------------- Save current state of all Layers so it can be reset later into LayerVisbilityStatus Variable -----
// Loop1 going through Scrollbar
//set scrollbar so that current Layer is at the top
// Storing Layer States:
] //End Loop
] // end routine Turn Layers Off