Re: VFP 8.0 grid losing focus and forcing a tableupdate()

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

From: Paul Pedersen (no-reply_at_swen.com)
Date: 12/06/04


Date: Mon, 6 Dec 2004 14:36:20 -0800

Ah, there's another form involved.

Does that other form share the data environment by any chance? If both forms
use the same data session id, and both look at the same table, and they're
not looking at the same record, that might cause your problem.

I always set a form's datasession to private unless I have a good reason not
to.

"Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
news:OZFrps62EHA.3000@TK2MSFTNGP15.phx.gbl...
> 100% sure.
>
> I've had breakpoints on
> oldval()
> getfldstate()
> recno()
>
> all of them fire as soon as the second forms activate is hit.
>
> If I put VFP in a window so I can see the watch pane of the debugger I can
> make it happen by clicking on the Data Session(set) window and bringing it
> to the front. Putting a breakpoint on any code that executes between the
> click and the activate of the new form makes the update happen when the
> debugger takes focus.
>
> And as I said, it works fine in VFP 9.
>
> Alan
>
> "Paul Pedersen" <no-reply@swen.com> wrote in message
> news:OWMxWVZ2EHA.3840@tk2msftngp13.phx.gbl...
>> That shouldn't happen. Are you sure there's no code being triggered when
> the
>> grid loses focus? Put a breakpoint on LINENO(), then leave the grid and
> see
>> what happens.
>>
>>
>>
>> "Alan C. Sheffield" <asheffield @ park west gallery.com> wrote in message
>> news:%23sHfFOV2EHA.1076@TK2MSFTNGP09.phx.gbl...
>> > Has anyone else run into the following situation:
>> >
>> > I have a row buffered cursor.
>> >
>> > I have a grid on this cursor.
>> >
>> > when the grid looses focus an automatic tableupdate() is done and I
>> > lose
>> > the
>> > ability to issue a tablerevert().
>> >
>> > The row does not change and no code is called to make the update
>> > happen.
>> >
>> > Alan Sheffield
>> > Programmer
>> > Park West Gallery
>> >
>> >
>>
>>
>
>



Relevant Pages

  • Phantom code
    ... When she runs the debugger, the screen comes up initially with one ... but we never hit the breakpoint. ... We have seen the value of lblMessage.text in the Watch1 window. ... the value is "" at the InitializeComponents breakpoint. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Phantom code
    ... When she runs the debugger, the screen comes up initially with one ... but we never hit the breakpoint. ... We have seen the value of lblMessage.text in the Watch1 window. ... the value is "" at the InitializeComponents breakpoint. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Really wierd bug
    ... CVF debugger is really comfortable to use: ... - F9 toggles the Breakpoint on cursor location. ... Ctrl+F10 (run to cursor) causes the program to run until it reaches the ... All local variables appear in "Locals" debugger window ...
    (comp.lang.fortran)
  • RE: AppVerifier breakpoint when closing VB6 application
    ... You can run!avrf debugger extension and follow the troubleshooting steps ... handle checks are enabled, Appverifier keeps track of open, close and any ... I am getting 2 breakpoint exceptions from AppVerifier upon closing my ... ModLoad: 00400000 004d5000 MyApp.exe ...
    (microsoft.public.win32.programmer.tools)
  • Re: [RFC] hwbkpt: Hardware breakpoints (was Kwatch)
    ... The debugger should always eat the trap. ... agent who asked for the breakpoint and who is responsible for responding to ... some question about what value the debug exception handler should write ... For most other machines this will be a no-op. ...
    (Linux-Kernel)