0

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.

Edited by Qazinix: n/a

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by Wolfgan
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;
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.