Subject Re: Mervyn's Create_subForm
From Mervyn Bick <invalid@invalid.invalid>
Date Sat, 5 Apr 2025 14:32:10 +0200
Newsgroups dbase.getting-started

On 2025/04/03 23:20, trevor wrote:
> Hi,
>
>   Using Mervyn's 'create_subform.wfm with sub_dele.wfm
>
> resulting in sub_dele.sfm
>
>   Using    Amain.wfm with  just one component a push buuton (nothing
> else) &following function in onOpen and onClick
>
>
> function form_onOpen
>     set procedure to sub_dele.sfm
>     this.oSub = new sub_deleForm(this)
>        return
>
>   function PUSHBUTTON1_onClick
>        form.oSub.open()
>        return
>
> On clicking pushbutton I get:
> Error: class does not exist
> AMAINFORM:PUSHBUTTON!_ONCLICK
>
> Any Ideas appreciated

I assume the ! in the error message is a transcription typo.  If it
isn't a typo then there's the problem.  A typo in the assignment of the
event handler to the event in the constructor code.

If that was a transcriptio typo then it sounds as if the event handler,
function PUSHBUTTON1_ONCLICK, has not been assigned to the pushbutton's
onClick event in the pushbutton's constructor code.

Mervyn.