Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fast Fastest Way to Release/Clear Array?
Message
De
18/09/1999 15:14:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00266368
Message ID:
00266376
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform