`
OOP: Better OOP part 5a 2003-04-21 -- Dan Pressnell Newsgroups: comp.lang.clarion,topspeed.topic.oop March 5, 2006: Note that the code is now available at: http://www.icetips.com/downloadfile.php?FileID=59 I've been asked if it's possible for a queue in a class to be derived from a file record structure. It's easy to do: myclass class, type q &myqueueytpe end myqueuetype queue(fil:record), type, pre(myqueuetype) end When using, use dot notation, such as: myclass.q.myfield1 When including the INC file, place the include in the embed after the file declarations, so it will compile. Also, because the queue type declaration will get included whenever you include the INC file, every app that includes the class will have to know the file structure the queue is derived from, which will often be the case. Dan Printed November 21, 2024, 6:58 am This article has been viewed/printed 35390 times. |