Re: Problems creating a class
- From: "Dan Freeman" <spam@xxxxxxxxxxxxx>
- Date: Fri, 15 Apr 2005 13:47:52 -0700
Any class you use with CreateObject() must be in one of the libraries in
SET("CLASSLIB").
Another alternative would be NewObject(), where you can specify the class
library.
Dan
Stephen & Shelagh Ibbs wrote:
> I am struggling with adding classes and hope somebody can help.
>
> I have added a very small custom class called 'progress' to a
> class library used throughout my project. I did this by clicking on
> Project manager, selecting the
> appropriate class library, clicking on New and entering
>
> progress
>
> as the name, basing it on custom.
>
> Within this class is a single method called
>
> updateprogress
>
> with a couple of lines of code. In a different classlibrary I have a
> form class which I use all the time to produce outputs, either
> preview,
> print or export, and in the output routine I have the following line
> of code:
>
> loprogress = createobject("progress")
>
> and it errors on this line with the error 'class definition not
> found'.
>
> Could somebody please explain what I have done wrong. Just in case it
> was touchy on case, everything has been entered in lower case.
>
> Many thanks
>
> Stephen
.
- Follow-Ups:
- Re: Problems creating a class
- From: Stephen & Shelagh Ibbs
- Re: Problems creating a class
- References:
- Problems creating a class
- From: Stephen & Shelagh Ibbs
- Problems creating a class
- Prev by Date: Problems creating a class
- Next by Date: Re: Adding parameters to base methods
- Previous by thread: Problems creating a class
- Next by thread: Re: Problems creating a class
- Index(es):
Relevant Pages
|