🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Need some help with Paradox tables

#119
From: Reid Roman
Date: Sat, 24 Oct 1998 00:00
40 lines
1863 bytes

Bill Artemik wrote:
> 
> I have to create a Paradox table with the following criteria:
> 
> 1 Primary Index
> 1 Composite Unique Secondary Index
> 
> I need to do this in code. I have Ver 5.0 of the BDE and am working
> with Delphi 3.02.
> 
> HOW can I accomplish this in code? I know how to create tables in
> Delphi and I can create indexes, etc but the composite, unique is
> throwing me for a loop.

I think:

MyTable.AddIndex('','DbYear;DbMonth;DbDate;',[]);

Should do it ...


Rkr

-- 
                   \|||/
                   /'^'\
                  ( 0 0 )
--------------oOOO--(_)--OOOo--------------
. Reid Roman			          .
. Delphi Programmer / Analyst	          .
. TVisualBasic:=class(None);	          .
. May the Source be With You		  .
-------------------------------------------
. Auto-By-Tel (http://www.autobytel.com)  .
. Irvine, CA U.S.A 			  .
. E-Mail : rkroman (at) pacbell (dot) net .
. or reidr (at) autobytel (dot) com	  .
-------------------------------------------
Technical Details
Message-ID: <3631F042.E78A9113@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3635ec09.86747945@news3.newscene.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ffff5,f63a329da54b623
X-Google-Attributes: gidffff5,public
X-Google-Thread: 1043cf,f63a329da54b623
X-Google-Attributes: gid1043cf,public
X-Google-Thread: 10de66,f63a329da54b623
X-Google-Attributes: gid10de66,public
From: Reid Roman <rkroman@home.com>
Subject: Re: Need some help with Paradox tables
Date: 1998/10/24
Message-ID: <3631F042.E78A9113@home.com>
X-Deja-AN: 404617796
Content-Transfer-Encoding: 7bit
References: <3635ec09.86747945@news3.newscene.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: @Home Network
MIME-Version: 1.0
NNTP-Posting-Date: Sat, 24 Oct 1998 08:17:04 PDT
Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.objectpascal,borland.public.delphi.database.sqlservers