Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fast Fastest Way to Release/Clear Array?
Message
From
18/09/1999 15:14:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00266368
Message ID:
00266376
Views:
16
Hi Steve,

Do you actually need to release it first or are you just trying to clear it? You can clear it simply by saying

MyArray = ""

instead of running thru the FOR loop. I would think that would be faster.

-Bonnie

>Which executes faster?
>
>
>		dimension MyArray [12]
>		
>		*	This way?
>		
>			release MyArray
>			dimension MyArray[12]
>		
>		* Or this way?
>		
>			release MyArray
>			for nNothing = 1 to 12
>				MyArray[nNothing] = ''
>			next nNothing
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform