Article View: borland.public.vdbase.data.sql
Article #911Re: Rowset navigation and field values problem
From: Ken Chan
Date: Mon, 29 Jun 1998 00:00
Date: Mon, 29 Jun 1998 00:00
30 lines
1468 bytes
1468 bytes
Andrew Knight wrote:
> function rowset_OnNavigate()
> if .NOT. (form.members1.rowset.endOfset)
If you're checking the rowset whose onNavigate is firing, all you need
is:
function rowset_onNavigate
if not this.endOfSet // THIS is the rowset
You already figured that out. Then in your rowset code, if you want to
refer to the form, you use:
function refreshUnlinked
local f // Variable for the form
f = this.parent.parent
The rowset's parent is the query, and the query's parent is the form --
IF you placed the query directly on the form, and not in a data module.
When you use a data module, things can get more complicated.
Data object events do not automatically have a FORM reference, because
those events can occur outside the context of a form. You can for
example, create a query in the Command window and navigate around. OTOH,
you cannot create and click a pushbutton without a form.
--
//Ken@Inprise
<Please follow-up to newsgroup; do not reply to email>
Technical Details
Message-ID:
<MPG.1001bc8db7b9b8a89899e8@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6n8ous$1gf15@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,ae3b594a89ea4a34 X-Google-Attributes: gidff5a1,public From: supportinfo@inprise.com (Ken Chan) Subject: Re: Rowset navigation and field values problem Date: 1998/06/29 Message-ID: <MPG.1001bc8db7b9b8a89899e8@forums.borland.com> X-Deja-AN: 367273911 References: <6n8ous$1gf15@forums.borland.com> Organization: Inprise Newsgroups: borland.public.vdbase.data.sql