Subject |
Re: But there is no custom class |
From |
Andy Taylor <andy.taylor.1959@outlook.com> |
Date |
Sat, 17 Sep 2022 16:06:35 +0100 |
Newsgroups |
dbase.getting-started |
Tom.
We've _all_ been there. :-)
Andy
> On 9/17/22 5:45 AM, Andy Taylor wrote:
>> Hi Tom,
>>
>> The error message only comes up when you try to run or design a simple
>> form. So, logic says that the problem will be somehow related to that
>> form. You don't post any code but I reckon something in that form
>> points dBASE into trying to use a custom class (probably a *.cfm or
>> *.cc).
>>
>> Please remove stuff from the form until the error goes away.
>>
>> Alternatively, try the simplest form possible in the command window:
>>
>> f=new form()
>> f.open()
>>
>> If that opens a form then the error is somewhere in your form.
>>
>> If you get the same error message then the error is in the dBASE setup
>> probably lurking, as Ken says, in the ini file.
>>
>> Andy
>>
>>> Hi all,
>>>
>>> For whatever reason, dBase has suddenly started displaying the
>>> attached message when I try to design or run a very simple form.
>>> Seems to me I have seen this before some time ago and it had to do
>>> with a problem in the INI file but I cannot recall further details.
>>> As the title would imply, the form uses no custom class or components.
>>>
>>> Help appreciated,
>>>
>>> Tom
>>
>>
> Gentlemen,
>
> Tried the following this morning ...
>
> f = new form()
> f.open()
>
> Form opened just fine.
>
> Checked the INI. Results in image attached. No entry under [Custom]
>
> Followed Andy's line "the error is somewhere in your form"
>
> Sure enough, way down in a function block that I had commented out,
> there was an extra 'return' that I failed to notice or comment out.
> Gave it the old '//' preface and the problem went away. Form runs and
> can be designed as expected. A good nights sleep does wonders for
> detecting errors in your code.
>
> Thanks much for your responses. I will try to do better next time.
>
> Regards,
> Tom
|
|