The Daily Click ::. Forums ::. Klik Coding Help ::. Dynamic Array Object (TGF)
 

Post Reply  Post Oekaki 
 

Posted By Message

Ben



Registered
  06/10/2002
Points
  651
31st May, 2003 at 01:23:18 -

I have a few questions regarding the dynamic array object... one, are you required to initialize it prior to use? Two, can you refer to an individual element with a simple grid-like reference? (Such as give me a value at x=3, y=2) and also be able to write such values in the same manner? Finally, is there a better array for storing simple numerical values, that uses a grid-reference and also has the ability to save and load array files other than the dynamic array object? I use TGF (cause I have no money for MMF).

Thanks
Ben

 
I've come up with all sorts of amazing new ideas... I just can't afford to make them.

Dr James 2



Registered
  17/02/2015 13:10:14
Points
  64
2nd October, 2015 at 02/10/2015 15:08:04 -

Did you ever fix this problem Ben?

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
7th October, 2015 at 07/10/2015 17:30:36 -

This post is from 2003 lol.

The answer for fusion is this though:

No you don't have to initialize the array object. That happens automatically when the object is created. The size of the array can be changed in the object's properties.

The answer to the second question is yes, you can reference array values by using "get value at (x,y)" same with setting values.

For the third question fusion has an extension called INI++ that lets you save data in the ini format, so you could use that to save human readable data, but also reference values using an array like method if you want. Use set value and using "X-Y" as the key.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click