Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sporadic lost data from array elements
Message
From
28/06/2006 09:28:22
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01130365
Message ID:
01132370
Views:
21
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform