RE: TZF - VFile at Runtime

[email protected]
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
Thanks, Randall.
That was just too easy. Something in the Topaz 7.51 manual lead me to 
believe there had to be a .DBF file on the hard drive to use in the 
statement:
   VTempDBF.DbfFilename := 'C:\YourFolder\YOURFILE.DBF';
Obviously, that is not the case since your sample works great, does not 
create a disk file, and is faster than a speeding bullet. 

Thanks again for your help. I will put this to good use.


Randall H. Carpenter wrote:
> To create a temporary in-memory file at runtime using TzVFile, use the 
> following code:
> 
>   VTempDBF.DbfFields.Clear; { clear the field list }
>   VTempDBF.Dbffields.Add('FIELDNAME1,N,3,0');
>   VTempDBF.Dbffields.Add('FIELDNAME2,C,3,0');
>   VTempDBF.DbfFields.Add('FIELDNAME3,D,10,0');
>   VTempDBF.DbfFields.Add('FIELDNAME4,L,1,0');
> 
>   VTempDBF.DbfFilename := 'YOURFILE.DBF';
> 
>   VTempDBF.Active := TRUE;
> 
> The Add method takes the following paramaters:
> 
>   Fieldname, FieldType, FieldLength, Decimals
> 
> where fieldname is your choice.  FieldType is N (numeric), C 
> (character), D (date), or L (logical).  FieldLength is your choice 
> without Dbase limits for numeric and character fields, 10 for date 
> fields, and 1 for logical fields.
> 
> Hope this helps.
> 
> Randall H. Carpenter
> 
> 
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Friday, March 07, 2003 2:38 PM
> To: [email protected]
> Subject: TZF - VFile at Runtime
> 
> 
> Is there a way to create a new VFile at Runtime with Topaz 7.51. From 
> the documentation, it looks like it can only be created at design time 
> from an existing .dbf file. Is there a way around this? Am I not 
> understanding the manual properly.
> 
> 
> 

==^================================================================
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
==^================================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.