🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1203

Re: Ver 7.01 => Rowset.fields["***"].value - problem

#1203
From: Ken Chan
Date: Mon, 06 Apr 1998 00:00
26 lines
1312 bytes
Karsten Tinzmann - Promex South Africa wrote:

>       SelectedGroup = this.rowset.fields["CustomerGroup"].value
>       this.form.MainNotebook.EntryField4.value = SelectedGroup

In that code, you are assigning the combobox value to a temporary 
variable, then copying it to an entryfield. You're doing a little 
unnecessary extra work (which may not be your intent).

>    function CUSTOMERGROUPNAMECOMBOBOX_onOpen
>       SelectedGroup = 1
>       return

In this code, you are simply creating a private variable, which 
immediately goes out of scope (i.e. vanishes, is destroyed, etc.) when 
the function ends.

If you actually want to save the value, you need to create it as a 
property of the control, the form, or _app; for example:

        form.selectedGroup = 1

-- 
//Ken@Borland
<Please follow-up to newsgroup; do not reply to email>
Technical Details
Message-ID: <MPG.f930d67661b39a09898d2@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: supportinfo@borland.com (Ken Chan)
Subject: Re: Ver 7.01 => Rowset.fields["***"].value - problem
Date: 1998/04/06
Message-ID: <MPG.f930d67661b39a09898d2@forums.borland.com>
X-Deja-AN: 341558883
References: <6garpt$kna2@forums.borland.com>
Organization: Borland
Newsgroups: borland.public.vdbase.data.sql