Re: Problems creating a class
- From: "Stephen & Shelagh Ibbs" <stephen@xxxxxxxxxxx>
- Date: Fri, 15 Apr 2005 22:11:45 +0100
Thanks Dan - I'll give NewObject a go.
Stephen
"Dan Freeman" <spam@xxxxxxxxxxxxx> wrote in message
news:OBqNmxfQFHA.2136@xxxxxxxxxxxxxxxxxxxxxxx
> 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
>
>
.
- References:
- Problems creating a class
- From: Stephen & Shelagh Ibbs
- Re: Problems creating a class
- From: Dan Freeman
- Problems creating a class
- Prev by Date: Re: OK to divide by zero?
- Next by Date: Re: Foxisapi and XP PRO
- Previous by thread: Re: Problems creating a class
- Next by thread: Re: Problems creating a class
- Index(es):
Relevant Pages
|