Welcome! Log In Create A New Profile

Advanced

Classes in WD14

Posted by John Marrone 
John Marrone
Classes in WD14
April 28, 2009 05:20PM
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)
Tracesmiling bouncing smileyirectory)
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?
Andres Sanchez
Re: Classes in WD14
April 28, 2009 05:44PM

This is been answered here:

[forum.mysnip.de]
John Marrone
Re: Classes in WD14
April 28, 2009 05:56PM
I am getting old and my memory is not what it use to be. The link toke me to the reply I got from the same question I guess I asked a while back. Now that's scary. I really am getting old. Thanks for the help.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: