Re: TZF - KeyMaker with Virtual File

Chris Morgan <[email protected]>
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
Hi,

It's quite straightforward to create an index for virtual files:

{ set this in code or you can use the object inspector }
TzVFile.KeyMaker := IndexFunction;

{ then in the implementation of the IndexFunction method: }
function TForm1.IndexFunction: string;
begin
   { this method should just return the field value
     for the field(s) which you want to index by }
   Result := TzVFile.Fields[3].AsString; { this will sort on the 4th
field }
end;

This index will not be saved to file if you use the SaveToFile method
to write your data to a DBF file.

Cheers,

Chris

----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Wednesday, March 26, 2003 11:32 PM
Subject: TZF - KeyMaker with Virtual File


> Hello,
>
> I did this once before but I can't remember how. I want to define my
own
> key for a virtual file. I am using Topaz 7.51 and have read the
addendum
> to the manual and am still confussed.
>
> Does anyone have a simple example of how to define my own key for a
> virtual file?
>
> Thanks.
>
> Phil Kidder
>

==^================================================================
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.