Article View: borland.public.vdbase.data.sql
Article #1207Re: Ver 7.01 => Rowset.fields["***"].value - problem
From: Romain Strieff [TeamB]
Date: Tue, 07 Apr 1998 00:00
Date: Tue, 07 Apr 1998 00:00
35 lines
1788 bytes
1788 bytes
In article <6garpt$kna2@forums.borland.com>, promexkt@icon.co.za grudgingly admits... > I have the following bit of code in my program where I want to assign the > CustomerGroup value to a variable which I intend to use later to conduct a > querie in another table. This value is to be assigned when the user selects > a CustomerGroup. The data the combobox displays is the CustomerGroupName in > the same table. > > Here is the code: > > function CUSTOMERGROUPNAMECOMBOBOX_onChange > this.rowset = this.form.cstgrpdl1.rowset > SelectedGroup = this.rowset.fields["CustomerGroup"].value > this.form.MainNotebook.EntryField4.value = SelectedGroup > return > > function CUSTOMERGROUPNAMECOMBOBOX_onOpen > SelectedGroup = 1 > return > > Can anyone help me? ----- Don't use variables for such stuff, use custom properties. The same form could be opened 25 times and they'd share the variables, each overwriting the others etc. Second, when you do something in a Combobox event THIS means the COMBOBOX and not the form or any query if that is your problem. -- Romain Strieff [TeamB] Want quick help? Check previous Q and A at: http://forumsearch.borland.com:88/ and TIs at http://www.borland.com/VdBASE/vdbprod.html
Technical Details
Message-ID:
<MPG.f942400466c19e698ab7f@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6garpt$kna2@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,f0d0f8bab29d096a X-Google-Attributes: gidff5a1,public From: Romain@Do.not.reply.via.e-mail (Romain Strieff [TeamB]) Subject: Re: Ver 7.01 => Rowset.fields["***"].value - problem Date: 1998/04/07 Message-ID: <MPG.f942400466c19e698ab7f@forums.borland.com> X-Deja-AN: 341674136 References: <6garpt$kna2@forums.borland.com> Organization: TeamB Reply-To: teamb@opto-pps.com Newsgroups: borland.public.vdbase.data.sql