Subject |
form to form |
From |
trevor <bob@bob.com> |
Date |
Sat, 19 Apr 2025 07:29:59 -0400 |
Newsgroups |
dbase.getting-started |
Hi,
Dbase plus 2.21 win10
I'm opening a form from another form with PB onclick.
I've tried 2nd form modal and non modal which works to call from2.
However when I close form2 and then click PB on form1(aamain) to reopen
form2(sub_dele) get the following error
Error: Class does not exist:
AAMAINFORM::PUSHBUTTON1_ONCLICK
This occurs both with readmodal() with midi set false and open() with
midi true on form2.
The code in form1 is (with midi false on form2(sub_dele))
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = class::PUSHBUTTON1_ONCLICK
height = 1.0909
left = 9.0
top = 5.5
width = 15.2857
text = "Pushbutton1"
endwith
function PUSHBUTTON1_onClick
set procedure to sub_dele.wfm
oSub = new Sub_deleForm()
oSub.readmodal()
oSub.release()
close procedure sub_dele.wfm
return
As far as I can see this is exactly as example found in Ken's dBase
book.I have also tied this on a different win10 machine, same results.
Any help appreciated.
Trevor
|
|