🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

VDB Unstable with a Query Object

#966
From: Daniel Howard
Date: Tue, 09 Jun 1998 00:00
37 lines
1549 bytes
Hello All!

Just Discovered something.  I have a custom component which gives me a
Unstable message only at design time (form).  Here's the code:

class SECTIONCOMBOBOX(parentObj, name) ;
   of COMBOBOX(parentObj, name) custom

   with (this)
      height = 22
      left = 287
      top = 22
      width = 210
      metric = 6	// Pixels
      speedTip = "Select a section"
      sorted = true
      style = 1	// DropDown
      dropDownHeight = 132
      value = ""
   endwith

   this.Query = New Query()
   with this.Query
      sql := "select distinct category from 'creg0009.dbf'"
      active := true
   endwith
   this.dataSource = this.Query.rowset.fields["CATEGORY"]
endclass

If I wrap the query part in an OnOpen function everythings ok. Problem
with OnOpen is that you can see the combobox flicker a bit as it
intializes.  It may be because I'm using the creg0009.dbf file at the
same time that the designer wants it.
-- 
Visit the Visual dBase Object Solutions Page!
http://www.total.net/~sproket
Technical Details
Message-ID: <357D2F56.152@total.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,9e4028faac6a6a23,start
X-Google-Attributes: gidff5a1,public
From: Daniel Howard <sproket@total.net>
Subject: VDB Unstable with a Query Object
Date: 1998/06/09
Message-ID: <357D2F56.152@total.net>
X-Deja-AN: 360987706
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Information Delivery Systems
Mime-Version: 1.0
Reply-To: sproket@total.net
Newsgroups: borland.public.vdbase.data.sql