🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1214

Re: names of tables and fields

#1214
From: Mark Cashman (TeamB)
Date: Tue, 04 Apr 2000 00:00
25 lines
1372 bytes
Hi, Pepito!

Have a look at

http://www.temporaldoorway.com/programming/cbuilder/databaseandbde/scanningtorefresh.htm

It gets you most of the way there. Just add this level as a yet more
innermost loop after the DataSet variable is set

for (int FieldIndex = 0; FieldIndex < DataSet->FieldCount; FieldIndex++)

{
    TField *Field = DataSet->Fields->Fields[FieldIndex];
    // Do what you want here
};

Note that "DataSet->Fields->Fields[FieldIndex]" is not a typo, but is
the BCB4 and above correct usage (ugly but true).

------
Mark Cashman, TeamB C++ Builder
http://www.temporaldoorway.com/programming/index.htm
C++ Builder, JBuilder programming information
Home of The C++ Builder Programmer's Webring - Join us!
------
Technical Details
Message-ID: <38EA31FF.503B962C@temporaldoorway.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8bvsrs$28i6@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,ef6dda2d6262cc0e
X-Google-Attributes: gidfcd2b,public
From: "Mark Cashman (TeamB)" <mcashman@temporaldoorway.com>
Subject: Re: names of tables and fields
Date: 2000/04/04
Message-ID: <38EA31FF.503B962C@temporaldoorway.com>
X-Deja-AN: 606675817
Content-Transfer-Encoding: 7bit
References: <8bvsrs$28i6@bornews.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 4 Apr 2000 11:12:56 -0800, 204.60.30.154
Organization: VTechnologies
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier