🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#1213
From: Karsten Tinzmann - Promex South ...
Date: Wed, 08 Apr 1998 00:00
66 lines
3037 bytes
Thx for your advise and help.

Romain Strieff [TeamB] wrote in message ...
>In article <6gebug$odk2@forums.borland.com>, tinzi@iafrica.com grudgingly
>admits...
>That won't work. Variables are scoped to procedure and your form are no
>program, even if 50 forms are onscreen waiting for user entry, no
>programm is running. Every private and local variable would be out of
>scope and public ones will overwrite each other forms variables.
>Just create custom properties of the form, that's what encapsulation is
>all about, each instance of the form has its own set of properties.


This looks like the foundation of my problem, I am falling back to procedual
programming. Forms are only objects with their properties set and all they
do is they form an user interface. The objects contained in a form are again
containers for programsections which react to user input. A selection of
forms in turn is controlled by a menu object (or any other object) which is
also a container for a programsegment. etc....

>Don't need that.
>just:
>f=new form()
>f.myprop="whatever"
>f.onopen={;msgbox(form.myprop)}
>f.open()
>
Thx

>-------
>Most of us have problems to get the needed time since we need to get
>accustomed to this new stuff too.<G>
>
At least you guys have already some experience with dBase from the past, to
me VdB is basically new.
>This is executed in the Combobox context. THIS means the combobox which
>_has_ _no_ rowset! so checking the fields array of a nonexisting rowset
>generates this error.
>
>use FORM.rowset..... instead.
>
Logically <See the key to my stuck-up above> <g>

>Don't use PUBLICs _ever_.<G>
>Just:
>
>  Procedure Form_OnOpen
>  form.selectedGroup="MY group"
>
Thx
>-------
>Yes, you mix up THIS and FORM, they are interchangeable _only_ for form
>events, in control events, THIS means the control that triggered the
>event.
>
Yep, see key above - sorry for basically asking you the same question over
and over
>
>We are _all_ newbees as far as VdB7 is concerned, it's only out a couple
>of months.

And suddenly I don't feel so lonely anymore <g> ... Welcome <LOL>
>
Karsten
tinzi@iafrica.com
Technical Details
Message-ID: <6ggdki$qhr12@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6garpt$kna2@forums.borland.com> <MPG.f942400466c19e698ab7f@forums.borland.com> <6gdjtj$nha8@forums.borland.com> <MPG.f9476687b33bdc498ab8b@forums.borland.com> <6gebug$odk2@forums.borland.com> <MPG.f9589f691167ec398ab93@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/08
Message-ID: <6ggdki$qhr12@forums.borland.com>
X-Deja-AN: 342142493
Content-Transfer-Encoding: 7bit
References: <6garpt$kna2@forums.borland.com> <MPG.f942400466c19e698ab7f@forums.borland.com> <6gdjtj$nha8@forums.borland.com> <MPG.f9476687b33bdc498ab8b@forums.borland.com> <6gebug$odk2@forums.borland.com> <MPG.f9589f691167ec398ab93@forums.borland.com>
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.vdbase.data.sql