View Single Post
Posts: n/a
Default 02-23-2009, 12:24 PM

Very strange!

The attached file is a slight modification of the file I posted in response to the original question and seems to work fine. I even added the Eskimo object to make sure there wasn't something strange with it.

The main difference between your posting and the attached is that both the name and age are local variables to MyFirstMethod instead of being defined as world level properties. Local variables are reset to their default value when the method ends while this doesn't occur for world level variables until the world stops.

However, since both events occur at the same time in your program, this shouldn't make a difference. Yet it does for the number - but not the string.

It's probably better to use local variables here anyway - since in general that's better practice - so this is a solution and actually a pretty good one. But why the problem occurs is a mystery to me.
Attached Files
File Type: a2w Name&Age_2.a2w (382.5 KB, 26 views)
Reply With Quote