BeeHay Posted September 28, 2008 Share Posted September 28, 2008 I have recently been messing with two arrays, and am having some problems with some of the time aspects of moving the arrayed data... say this is my code... if(this...) Array2.AddValue(Array1[0]) Array1.RemoveAt(0) endif ... and I use GetTime(Array2[0]) The time shown is still the time of when the value was added to Array1, when what I want is the time it was added to Array2... Any pointers would be great! Thanks! Link to comment Share on other sites More sharing options...
AzeoTech Posted September 28, 2008 Share Posted September 28, 2008 Thats because the time gets tracked through. Once a time is associated with a value it tends to stay with the value. This is usually what you want, but when you don't, as in your case, you can use the inserttime() function to put whatever time you want: Array2.AddValue(InsertTime(Array1[0],systime(),-1)) Link to comment Share on other sites More sharing options...
BeeHay Posted September 29, 2008 Author Share Posted September 29, 2008 What would be the corret syntax for AppendValue? I tried this, and it doesn't work - Array2.AppendValue(InsertTime(Array1[0],systime(),-1)) Thanks, Brandon Link to comment Share on other sites More sharing options...
AzeoTech Posted September 29, 2008 Share Posted September 29, 2008 That's because its Append() not AppendValue() Link to comment Share on other sites More sharing options...
BeeHay Posted September 29, 2008 Author Share Posted September 29, 2008 Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.