RE: Newbie help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Lee Mitchell (Leemi_at_online.microsoft.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 20:19:41 GMT

Hi Elwin:

Yes, this could cause a problem in the future since variables can fall out
of scope in a form very easily. If you insist on using memory variables,
you should make they all public so they remain in scope. However, you need
to release them when you leave the form.

A better option is to use table buffering. You can store the data and
changes in memory, and discard or write the data to the tables as
necessary. See this article for more info:

129641 INFO: Alternative to SCATTER and GATHER in the New VFP Model
http://support.microsoft.com/?id=129641

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
   http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
   http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
 
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
   - VFP5 Mainstream Support retired June 30th, 2003
   - VFP6 Mainstream Support retires Sept. 30th, 2003

>Hi All,
>I'm a newbie coming from a dBase world. When I create forms, all my
>textboxes, checkboxes, buttons and so on are NOT bound to any
>fields/tables because I feel more comfortable to have them bound to
>variables instead. Is this the correct way of doing things? Will this
>style of programming come back to haunt me in the future, for example
>in OOP? If this style is not right what do you advise?
Thanks, Elwin



Relevant Pages

  • Re: VISTA RAM QUESTION
    ... Page 7 shows how to install the memory. ... But then I need to finish up mounting the scope mount for the scope on ... I just did a drive install when I had a windows system so badly screwed up nothing could fix it. ...
    (misc.news.internet.discuss)
  • Re: Oscilloscope dealers in the US
    ... Agilent DSO3202, pretty nice features but only 4k memory. ... Obviously favors Tek, but they do some live demos with the DSO3000's that ... The Agilent 54645D and friends have several logic channels plus two scope ...
    (sci.electronics.design)
  • Re: Scope Best Practice
    ... creating a new object versus the cost of maintaining it in memory?" ... the object is ready for GC once the loop is complete ( ... even if it remains in scope because it is not being referenced anywhere ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Scoping in VB.Net
    ... You may be slightly confused about scope, ... As an example of what I mean, think about memory leaks using a language ... variables are not value types (but reference types) and are declared on ... The Windows OS has a reference to it via a "Handle". ...
    (microsoft.public.dotnet.languages.vb)
  • Why does a WinForm stay in memory if the local reference var goes out of scope?
    ... Why does a WinForm stay in memory if the local reference var goes out ... of scope? ... FormTest is a form with nothing on it, ...
    (microsoft.public.dotnet.framework.windowsforms)