Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Whether to Use an Array or a Cursor ?
Message
From
15/08/2013 14:17:10
 
 
To
15/08/2013 11:22:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01580497
Message ID:
01580555
Views:
57
I can't imagine that the time is significantly different here. What many devs fail to take into account is how difficult will it be to understand the code a year from now when you have to modify it. Almost certainly the array code will be harder to understand and change than cursor code.

>Thanks Madam.But ASCAN() Will search for the Exact existence of record. is it possible with ACSN () to search like record, I mean to say that
>If the Array Element consist of "F2 B (Usage Charges)387 530 w" than is it possible to search 'Usage Charges' from Array element and Extract 300 from it using ASCAN.
>
>currently I am Scanning the entire array using For ENFOR and using IF 'Usage Charges' $ laArray(I)=.T., like this
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform