I'm playing with RB 2005 and found the useful command "Implement interface",
so I opened a small test project that I created in v5.5.5, select the class
and used the command ... and becomes a bit surprised.
The interface looks like this
Interface FormatReader
Function openSource(f as FolderItem) As Boolean
End Function
Function hasMoreRecords() As Boolean
End Function
Function getRecord() As Record
End Function
Function closeSource() As Boolean
End Function
Sub moveToNextRecord()
End Sub
End Interface
and the resulting class like this:
Class BookendsXMLReader
Implements FormatReader
Protected Function openSource(f as FolderItem) As Boolean
// Part of the FormatReader interface.
End Function
Protected Function hasMoreRecords() As Boolean
// Part of the FormatReader interface.
End Function
Protected Function getRecord() As Record
// Part of the FormatReader interface.
End Function
Protected Function closeSource() As Boolean
// Part of the FormatReader interface.
End Function
Protected Sub moveToNextRecord()
// Part of the FormatReader interface.
End Sub
Where did the "protected" come from???
jem
--
Jan Erik Moström, www.mostrom.pp.se
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|