RE: TZF - VFile at Runtime

"Randall H. Carpenter" <[email protected]>
Newsgroups gmane.comp.lang.delphi.topaz,gmane.spam.detected
Message-ID <[email protected]>
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.