I have created two class files.
1st file File.wdc
In this file I have the code:
<code>
File is class
Name is string
Extension is string
Directory is string
END
PROCEDURE Constructor()
PROCEDURE Destructor()
PROCEDURE Display()
Trace(:Name)
Trace(:Extension)
Trace
irectory)
RETURN
</code>
2nd file FileInfo.wdc
In this file I have the code:
<code>
FileInfo is class
inherits from File
END
</code>
This does not work. I have also tired the following code:
<code>
FileInfo is class
File inheritance
END
</code>
As you can see I toke this straight from the help file.
Can someone set me straight here. This should not be this hard. I am taking it from the help file. I don' know what else to do.
Also when you create a class does it have to be in its own file and does the file have to have the same name as the class?