Subject Re: Reports stopped working
From Ruth Bromer <ruth@treklite.com>
Date Sat, 25 Sep 2021 21:09:26 -0400
Newsgroups dbase.getting-started

Andy, I have an old copy in a different directory from a previous project that I copied and the base.crp is the same.  MYTITLETEXT isn't mentioned.  I replaced it just to make sure and the reports still do not work.

Ruth

Andy Taylor Wrote:

> Ruth,
>
> My guess is that MYTITLETEXT1 is defined in your "base" report that all the other reports all rely on.
> If the base report has been amended or corrupted so that items are now missing then you will get multiple problems.
>
> Your report class for startlist starts with:
>  class STARTLISTREPORT of BASECREPORT from "Base.crp"
>
> Look in your application folder using Windows Explorer for a file called "Backup of base.crp"
> If it's there then open it and compare it to the contents of base.crp
> They are both text files so you can copy & paste to repair anything missing.
>
> dBase makes ONE backup copy automatically whenever you change a file with the designer in the IDE.
> The problem is of course that repeated attempts to use the designer to fix the problem may mean that your original file
>  that worked is now only a figment of your own memory... fingers crossed that's not the case.
>
> Come back to the group if no joy (almost bedtime in the UK where I am).
> Andy
>
> > All of a sudden my reports stopped working.  I get the message for line 374 on the StartList.rep:
> > Error:  Variable undefined:  MYTITLETEXT1
> >
> >    with (this.PAGETEMPLATE1.MYTITLETEXT1)
> >       height = 0.3125
> >       left = 2.3959
> >       top = 0.0867
> >       width = 1.1146
> >       form.MYTITLETEXT1 = form.pagetemplate1.mytitletext1
> >    endwith
> >
> > I'm guessing that MYTITLETEXT1 was defined and isn't any more, but I really don't know where that might have been or how.
> >
> > I also get the same message for line 427 on the CompetitorListNoShirts.rep.
> >
> >    form.MYTITLETEXT1 = form.pagetemplate1.mytitletext1
> >
> > These reports worked earlier today.  I tired to modify one report and the next thing I saw was all of the reports having problems.
> >
> > Thank you for whatever help you can give me.  
> > Ruth
> >
> >
>