Difference between revisions of "Dim"

From NexusWiki
Jump to: navigation, search
(Created page with ''''Dim'''(list, size); It changes the number of elements in the list to ’size’ number. Those elements that have an index below ’size’ remain, those that are above, will b...')
 
 
Line 1: Line 1:
 
'''Dim'''(list, size);
 
'''Dim'''(list, size);
 +
 
It changes the number of elements in the list to ’size’ number. Those elements that have an index below ’size’ remain, those that are above, will be deleted. If the list was shorter, than it will be filled up with 0-s. So if you want to create an array that contains only 0-s, than you have to empty first.
 
It changes the number of elements in the list to ’size’ number. Those elements that have an index below ’size’ remain, those that are above, will be deleted. If the list was shorter, than it will be filled up with 0-s. So if you want to create an array that contains only 0-s, than you have to empty first.

Latest revision as of 01:31, 19 June 2009

Dim(list, size);

It changes the number of elements in the list to ’size’ number. Those elements that have an index below ’size’ remain, those that are above, will be deleted. If the list was shorter, than it will be filled up with 0-s. So if you want to create an array that contains only 0-s, than you have to empty first.