HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

setting array

02-18-2005, 04:11 PM#1
Tabris
We can only do
array[index]= something?
in other langage woulb kind of :
array[] = {1,2,3,4,5,6}
02-18-2005, 04:29 PM#2
Guest
Your question is TOTALLY unclear but I'll try to answer to what I understood

If you want to set so that, for example, you have an integer array called "array" and have each value correspond to one precise value...
For each Integer A from 1 to 256 - Set array[integer A] = integer A
Means that array[1]=1, array[2]=2, array[3]=3.. etc...

After you can customize it of course: example
For each Integer A from 1 to 256 - set array[integer A] = (integer A)*(integer A)
So array[1]=1, array[2]=4, array[3]=9 (sqares)

If that's not what you wanted, just ask again and be more clear please ^_^