Re: VFP 8.0 grid losing focus and forcing a tableupdate()
From: Paul Pedersen (no-reply_at_swen.com)
Date: 12/06/04
- Next message: Gene Wirchenko: "Re: VFP 9 and file size limits"
- Previous message: KevClark64_at_hotmail.com: "Re: COPY TO ARRAY"
- In reply to: Alan C. Sheffield: "Re: VFP 8.0 grid losing focus and forcing a tableupdate()"
- Next in thread: Alan C. Sheffield: "Re: VFP 8.0 grid losing focus and forcing a tableupdate()"
- Reply: Alan C. Sheffield: "Re: VFP 8.0 grid losing focus and forcing a tableupdate()"
- Messages sorted by: [ date ] [ thread ]
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
>> >
>> >
>>
>>
>
>
- Next message: Gene Wirchenko: "Re: VFP 9 and file size limits"
- Previous message: KevClark64_at_hotmail.com: "Re: COPY TO ARRAY"
- In reply to: Alan C. Sheffield: "Re: VFP 8.0 grid losing focus and forcing a tableupdate()"
- Next in thread: Alan C. Sheffield: "Re: VFP 8.0 grid losing focus and forcing a tableupdate()"
- Reply: Alan C. Sheffield: "Re: VFP 8.0 grid losing focus and forcing a tableupdate()"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|