Re: Problems creating a class

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: generic oversight?
    ... libraries, designed by some quite clever people, is not progress. ... If you have a contempt for standardisation and want to avoid NPEs and CCEs, then write a new language rather than corrupt an existing one. ... To stay in Java and avoid these CCEs, ...
    (comp.lang.java.programmer)
  • Re: syscall interface into kernel
    ... I was hoping for documentation such as might be used by someone developing ... tracking the progress of kernel development over time, ... up a layer of complexity in the library itself, ... libraries are a continuing work in progress, ...
    (comp.os.linux.development.system)
  • ANNOUNCE: CL-SQS, an interface to Amazon SQS
    ... accessing Amazon SQS (Simple Queue Service). ... libraries: drakma, ironclad and s-xml. ... It is still a work in progress and its portability ...
    (comp.lang.lisp)
  • Re: Problems creating a class
    ... > Any class you use with CreateObjectmust be in one of the libraries in ... >> I have added a very small custom class called 'progress' to a ... >> Project manager, selecting the ... and in the output routine I have the following line ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Problems creating a class
    ... You won't be able to use createobjectif you intend your progress object to become a visible part of your form at runtime. ... .VFP code is case insensitive, except for the DECLARE command which is used to access API style DLLs ... I did this by clicking on Project manager, ... and in the output routine I have the following line of ...
    (microsoft.public.fox.programmer.exchange)