Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only