troubleshooting Question

Simple Class question

Avatar of crystyan
crystyan asked on
21 Comments2 Solutions316 ViewsLast Modified:
I want to have in a class an array like this:
type TBook = record
  name: String;
  pages: Byte;

  A: Array of TBook;
let`s say I want the class to have the name TMyClass

I want to have these:
MyClass: TMyClass;

MyClass[1].BookName := 'bookname' or bookname := MyClass[1].BookName;
and I don`t want to have a maximum number of A.
Also I want MyClass.Add(book: TBook);

I want all the code pls.

Mike Littlewood

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 21 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros