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