I'm having a strange issue when trying to save an array to a file. Basically, I have a button that should save the array to a file when clicked. The event call I'm using works, but it seems like where I call it from is causing trouble. Presently, when the button is clicked, the file is saved, but the array it saves is completely zeroed-out. However, if I use the exact same line in a "Start of Layout" condition instead, it saves correctly. I have double checked the entire event sheet and there is nothing else that accesses the array, and I know the data is good going in to the layout and up to the point where the button is clicked, so I'm at a loss. Is there an issue with saving arrays during certain events, and is there a workaround?
I'd rather not provide a .cap file, as the project directory is kind of a mess and rather large, but I can give screen shots of the events if needed.