954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Delphi 7 and Record data files

I'm writing a program to keep record of my e-books and to open them.
I have a record declared in Delphi 7 like this.

BookLibrary = record
                  AuthorName: String[20];
                  BookName:   String[20];
                  PDFLink:    String[200];
                end;

Now my question, is it possible to edit a record later on so that one can add more records into the "BookName" and the "PDFLink" fields.

Can one create a record declaration like this?

BookLibrary = record
                  AuthorName: String[20];
                  BookName:   Array[1..20] of String[20];
                  PDFLink:    Array[1..20] of String[200];
                end;


I'm using to open the pdf files.

ShellExecute(Handle,'open',PChar(link),nil,nil,SW_SHOWMAXIMIZED);

I thank you for your help and comments.

Qazinix
Newbie Poster
2 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

Possible. Just a little bit differently.

TBookName = string[20];
TPDFLink  = string[200];
BookLibrary = record
    AuthorName: String[20];
    BookName:   Array[1..20] of TBookName;
    PDFLink:    Array[1..20] of TPDFLink;
end;
Wolfgan
Junior Poster
101 posts since Jun 2010
Reputation Points: 34
Solved Threads: 14
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: