Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sporadic lost data from array elements
Message
De
28/06/2006 09:28:22
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01130365
Message ID:
01132370
Vues:
24
Hi Lynda

>The array element containing the PK, Case(2), is assigned to a variable and passed as a parameter to the new routine. There is no reference to the array within the routine.

I feel badly that you're stuck like that. I've inherited one system where fields are copied to an array early in the code, manipulated and printed out much later in the code. It's very tough to match the columns on the report to the original fields. Talk about obfuscation!

IMO arrays are terrible! First off, unlike C, VFP arrays are not faster than cursors. When FoxPro executes a line of code it is sufficiently removed from the underlying C code that there is little, if any, benefit to using an array. Array usage often makes the code unreadable.

I believe Fox has been tuned to use cursors and data, not arrays.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform