🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.databases
Article #30

lookup in DBGrid - ver3 vs ver5

#30
From: Paul McGee
Date: Mon, 10 Jul 2000 00:00
44 lines
2230 bytes
I have upgraded to v5 Pro from v3 Std.

I have an application built so far -
Master/Detail form, with a lookup to a third table as a field in the
detail table.
This runs fine in v3, but if the same project is run in v5, there is a
problem.  

In V5:
If the lookup field already has an entry, when the drop-down box
appears, the detail table
jumps out of edit mode, and so does not accept the new chosen item.

If the lookup field is empty, the drop-down box appears fine, edit mode
still active,
but on choosing an item with the mouse, or moving the highlight down
with the arrow keys,
an error is invoked : "List index out of bounds(1)".

In V3:
If the detail table is in edit mode, + lookup field is empty, the
drop-down + choose + continue works great.
If the lookup is not in edit mode, the drop-down still works, and when
an item is chosen,
it is entered, focus passes to the next column, and the table enters
edit mode.

Has anyone encountered this sort of behaviour before???

I can live with it by compiling this part of the application (Data
entry) 
as a separate program, but it does seem kinda STUPID!!!

Thanks for any help.


-- 
Paul McGee
pmcgee@cygnus.uwa.edu.au
--------------------------------------------------------
Love is the triumph of *Imagination* over *Intelligence*

They say hard work never killed anyone ...
                          - but I say why take the risk?
Technical Details
Message-ID: <396933DE.33B59F06@cygnus.uwa.edu.au>
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: ffff5,655a9396d7367d29,start
X-Google-Attributes: gidffff5,public
X-Google-Thread: ff75c,655a9396d7367d29,start
X-Google-Attributes: gidff75c,public
From: Paul McGee <pmcgee@cygnus.uwa.edu.au>
Subject: lookup in DBGrid - ver3 vs ver5
Date: 2000/07/10
Message-ID: <396933DE.33B59F06@cygnus.uwa.edu.au>
X-Deja-AN: 644448686
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@news.uwa.edu.au
X-Trace: enyo.uwa.edu.au 963197338 6010 202.148.94.220 (10 Jul 2000 02:48:58 GMT)
Organization: pmcgee@ozemail.com.au
Mime-Version: 1.0
Reply-To: pmcgee@cygnus.uwa.edu.au
Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.desktop