![]() |
Objects. Love/Hate Relationship.
While enjoying my ability to come up with quirky names for threads. I'm having an issue elsewhere with me objects in my mudlib.
Here's the issue: When I echo all the objects vars through the for loop. It only returns the values/information of the last two vars. This is causing a serious pain in the ass. Becuse no matter what I come up with. It refuses to return the values for all 3 object variables. However, I know the variables are being written as getDynamicVarNames() returns all three vars. But I'm only getting the values for two. Here's the script portion: PHP Code:
|
Where is 'files' coming from?
|
files is an array list of item names I set in an earlier function.
|
files - locations of lists...
lists - variables of concern... What I see is this: a) lists[ i ] is with respect to files[ i ] here... What you'd have to do is just: PHP Code:
|
Thanks Novo! Worked like a charm.
|
Quote:
You know, you don't have to initialize all objects to TStaticVar (but its good insurance), TGraalVar is variable after all. Observe: PHP Code:
|
Quote:
I thought variables concatenations don't work that way. |
| All times are GMT +2. The time now is 08:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.