Collections are the thing to use once you get your head around them, but it takes a little time. They are extremely flexible and unlike cursors can be easily passed around.
Dave Crozier -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Peter Cushing Sent: 07 July 2009 16:41 To: [email protected] Subject: Re: How do you hold short term data? Stephen Russell wrote: > So you use collections for your "global vars" where they are packaged > into a single object and you can ref them by name, right? > No not a collection. I'm only on VFP7 and think they came in at 8. I could have a global object and add properties to that but I use straight PUBLIC variables, which are nice and simple to use. > Can you pump a small cursor into a collection? > > 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. 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 [excessive quoting removed by server] _______________________________________________ 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/9738a7db31b44520b03ac0656482b...@develop ** 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.

