Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Array and Compile Errors
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01618488
Message ID:
01618560
Vues:
42
>>>EXTERNAL ARRAY laArray in your prg seems to solve the issue
>>
>>Ah yes. I couldn't remember that damn command :-)
>
>Me too, I remembered I was using it in a project so I looked into it
>
>>I HATE FOXPRO ARRAYS!
>>
>>It's an awful, awful data structure.
>
>Yes, it is not very elegant and marginally useful.

Well sometimes you do need to store something in memory and all things considered they are pretty fast - certainly much faster than collections.

Arrays are useful, but in FoxPro arrays are such a pain in the ass. You can't have empty arrays, there's the horrible set of commands to manage array sizes, resizing. The fact you can't pass parameters out of functions, all the complications it causes with COM interop etc. etc.

If possible I avoid them unless there's no choice. Or at the very least add a wrapper around them. I have a set of wwCollection classes that wrap arrays with cleaner syntax, while still storing in actual arrays to get the same performance, but even that's ugly as you lose direct array syntax.


+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform