Stephen Russell wrote:
> On Tue, Jul 7, 2009 at 10:40 AM, Peter
> Cushing<[email protected]> wrote:
>
>   
>>> I am getting at a list of States in shipping.  Why would you keep
>>> hitting the table for the same non changing data 1500 times a day?
>>>
>>>
>>>       
>> That's where an array would be better than using a non changing table.
>> It is all loaded into memory so will be faster.
>>
>>     
> --------------------------
>
> So you would public an array of states?  Sounds good to me if you
> didn't have collections available, pre vfp 8.
>
>   
You could use a cursor but that is still a file on disk somewhere.
Arrays are nice and fast and memory is not really a problem for most 
machines.  Sometimes the coding is a bit messy but if you create some 
global functions to do the lookups etc all that can be under the hood 
(bonnet for us UK'ers).
I'd have a look at collections if you have them though.

Peter

----------------------------------------------------------------



Rajan Imports has changed - we are now Whispering Smith Ltd.  For more 
information see our website at www.whisperingsmith.com


Please update your address book with my new email address: 
[email protected]

.

This communication is intended for the person or organisation to whom it is 
addressed.  The contents are confidential and may be protected in law.  
Unauthorised use, copying or 
disclosure of any of it may be unlawful.  If you have received this message in 
error, please notify us immediately by telephone or email.

www.whisperingsmith.com

Whispering Smith Ltd
Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 
Fax:0161 831 3715
London Office:17-19 Foley Street, London  W1W 6DW Tel:0207 299 7960



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to