` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

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


Today is May 6, 2024, 3:03 pm
This article has been viewed 35114 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: