Re: TZF - Opening DBF at runtime

Chris Morgan <[email protected]> Mon, 14 Jul 2003 09:09:54 +0100
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
Hi,

I open DBFs at runtime all the time without knowing the field
structure first.

You should just be able to do:

TzDbf1.DbfFilename := Filename; // complete path of DBF file
TzDbf1.Open;

You shouldn't need to set the Fields property first, just make sure
that
Fields.Count() is 0 so you don't have any predefined fields which may
not
match those in the DBF you want to open.

cheers,

Chris

----- Original Message ----- 
From: "Eitan Gilboa" <[email protected]>
To: <[email protected]>
Sent: Friday, July 11, 2003 9:43 PM
Subject: Re: TZF - Opening DBF at runtime


> >> I don't want to create a file at runtime, I want to open any ole
DBF I
> want to without having to know it's pre-defined structure...
>
> Sorry.
>
> Try looking at WBrowse as Marie suggested.
>
>
> Best wishes,
>
> Eitan.
> URL: http://perso.wanadoo.fr/eitang
>

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt
Or send an email to: [email protected]

TOPICA - Start your own email discussion group. FREE!
http://www.topica.com/partner/tag02/create/index2.html
==^================================================================