🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#1205
From: Karsten Tinzmann - Promex South ...
Date: Tue, 07 Apr 1998 00:00
51 lines
2909 bytes
Ken

 I have tried what you suggested, but I keep getting an Invalid Subscript
Reference error, which I am getting almost all the time I write a piece of
code. What does it realy mean? The way I understand it, it means that I am
referencing an object which does not exist or I am referencing an object
property that does not exist.

 I have to admit that I am new to VdB and that most of my experience lies
with Java Applets, HTML, VB 4.0, GWBasic etc. where I had to write either
applets/ Webpages or Programs for Civil Engineering Calculations. Now I have
been given the task to write a program that extracts data from Impact,
summarize it and store it as the data is purged after three years from
Impact. In the program I have to monitor the government tenders and the
exchange rates, calculate price adjustments and then print relevant claim
forms. In addition to this I have to supply a statistics with regard to
customers, product movements, determin seasonal behaviour of customers and
generate a life budget from the available data. I still have a long way to
go, in a very short time to be honest. I decided on VdB ver 7 in January 98,
bought it and now I have problems due to the shortage of available
documentation. My friends, all avid FoxPro Fans are laughing at me for
choosing VdB and I intend to show them that I have made a good choice when I
chose VdB 7.0.
Ken Chan wrote in message ...
>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: <6gchi7$m4v7@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6garpt$kna2@forums.borland.com> <MPG.f930d67661b39a09898d2@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: "Karsten Tinzmann - Promex South Africa" <promexkt@icon.co.za>
Subject: Re: Ver 7.01 => Rowset.fields["***"].value - problem
Date: 1998/04/07
Message-ID: <6gchi7$m4v7@forums.borland.com>
X-Deja-AN: 341616294
References: <6garpt$kna2@forums.borland.com> <MPG.f930d67661b39a09898d2@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.vdbase.data.sql