|
Home > Archive > Getting Started with dBASE > January 2006 > Class does not exist
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Class does not exist
|
|
|
| I created a form to populate my database. I created the form through the wizard and have 2 pushbutton (Update) and (Cancel) so that I can modufy a record. Problem. I execute the from with Do finput.wfm and the fields show on the screen but when I hit
one of my pushbuttons, I get the error message "Class does not exist FINPUT::PUSHBUTTON1_
ONCLICK" Any ideas?
| |
| Ken Mayer [dBVIPS] 2005-12-29, 8:23 pm |
| Mark wrote:
> I created a form to populate my database. I created the form through the wizard and have 2 pushbutton (Update) and (Cancel) so that I can modufy a record. Problem. I execute the from with Do finput.wfm and the fields show on the screen but when I h
it one of my pushbuttons, I get the error message "Class does not exist FINPUT::PUSHBUTTON1_
ONCLICK" Any ideas?
>
Without actually seeing the form, it sounds like the pushbutton is
trying to reference code that no longer exists ... open the form in the
Source Code Editor and see if you can find that code ...
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
|
| Ken Mayer [dBVIPS] Wrote:
> Mark wrote:
hit one of my pushbuttons, I get the error message "Class does not exist FINPUT::PUSHBUTTON1_
ONCLICK" Any ideas?[color=darkred]
>
> Without actually seeing the form, it sounds like the pushbutton is
> trying to reference code that no longer exists ... open the form in the
> Source Code Editor and see if you can find that code ...
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/dbase/dBASEBook.htm
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase
Ken,
Here is the code that the wizard generated.
Ken, Here is what it looks like. The wizard created it.
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = class::PUSHBUTTON1_O
NCLICK
height = 1.0909
left = 17.0
top = 17.5
width = 15.2857
text = "Update"
endwith
| |
|
| Mark Wrote:
> I created a form to populate my database. I created the form through the wizard and have 2 pushbutton (Update) and (Cancel) so that I can modufy a record. Problem. I execute the from with Do finput.wfm and the fields show on the screen but when I h
it one of my pushbuttons, I get the error message "Class does not exist FINPUT::PUSHBUTTON1_
ONCLICK" Any ideas?
>
Here is the code the wizard generated.
Ken, Here is what it looks like. The wizard created it.
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = class::PUSHBUTTON1_O
NCLICK
height = 1.0909
left = 17.0
top = 17.5
width = 15.2857
text = "Update"
endwith
| |
| Ken Mayer [dBVIPS] 2005-12-30, 1:23 pm |
| Mark wrote:
> Here is the code that the wizard generated.
>
> Ken, Here is what it looks like. The wizard created it.
>
> this.PUSHBUTTON1 = new PUSHBUTTON(this)
> with (this.PUSHBUTTON1)
> onClick = class::PUSHBUTTON1_O
NCLICK
> height = 1.0909
> left = 17.0
> top = 17.5
> width = 15.2857
> text = "Update"
> endwith
Yes, but does "PUSHBUTTON1_ONCLICK" exist in the form?
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| Les Shewchuk 2005-12-30, 1:23 pm |
| Also, look for any SET PROCEDURE TO that doesn't have an ADDITIVE on the
end.
Without the ADDITIVE, the form will forget it's own procedures.
Les Shewchuk
"Ken Mayer [dBVIPS]" < dbase@_nospam_golden
stag.net> wrote in message
news:Qa3AzaWDGHA.2180@news-server...
>
> Yes, but does "PUSHBUTTON1_ONCLICK" exist in the form?
>
> Ken
| |
| Ken Mayer [dBVIPS] 2005-12-30, 8:23 pm |
| Les Shewchuk wrote:
> Also, look for any SET PROCEDURE TO that doesn't have an ADDITIVE on the
> end.
> Without the ADDITIVE, the form will forget it's own procedures.
Yeah. I forgot that one, because in 2.5 (I think) the "additive" word is
not really required anymore ... <g>
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
|
| Ken Mayer [dBVIPS] Wrote:
> Les Shewchuk wrote:
>
> Yeah. I forgot that one, because in 2.5 (I think) the "additive" word is
> not really required anymore ... <g>
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/dbase/dBASEBook.htm
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase
I didn't find any Set Procedure to statements. You had asked if PushButton1 was in the form. Below is the end of the form code. I call this code with a DO statement
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = class::PUSHBUTTON1_O
NCLICK
height = 1.0909
left = 17.0
top = 17.5
width = 15.2857
text = "Update"
endwith
this.PUSHBUTTON2 = new PUSHBUTTON(this)
with (this.PUSHBUTTON2)
onClick = class::PUSHBUTTON2_O
NCLICK
height = 1.0909
left = 47.0
top = 17.5
width = 15.2857
text = "Cancel"
endwith
this.rowset = this.activity1.rowset
function PUSHBUTTON1_onClick
commit ()
close form testinputForm
return
function PUSHBUTTON2_onClick
rollback
mcancel = "Y"
close form testinputForm
return
Below is the start of the form source code
** END HEADER -- do not remove this line
//
// Generated on 12/28/2005
//
parameter bModal
local f
f = new testinputForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class testinputForm of FORM
with (this)
height = 19.3182
left = 4.2857
top = 0.1364
width = 91.2857
text = "Input"
endwith
this.ACTIVITY1 = new QUERY()
this.ACTIVITY1.parent = this
with (this.ACTIVITY1)
left = 84.0
top = 12.0
sql = 'select * from "activity.dbf"'
active = true
endwith
| |
| Ken Mayer [dBVIPS] 2006-01-02, 11:23 am |
| Mark wrote:
>
> I didn't find any Set Procedure to statements. You had asked if PushButton1 was in the form. Below is the end of the form code. I call this code with a DO statement
Actually I had asked if the code was there. Anyway, you're posting just
bits and pieces. It might be easier if you posted *as an attachment, in
the binaries newsgroup* the file, so people can look at it.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| Mark Weiss 2006-01-12, 3:23 am |
| Les Shewchuk Wrote:
> Also, look for any SET PROCEDURE TO that doesn't have an ADDITIVE on the
> end.
> Without the ADDITIVE, the form will forget it's own procedures.
>
> Les Shewchuk
>
> "Ken Mayer [dBVIPS]" < dbase@_nospam_golden
stag.net> wrote in message
> news:Qa3AzaWDGHA.2180@news-server...
>
> Ken,
Thanks. I was able to correct the error. I trashed the button code and used one of the example code buttons that DBASE supplied
|
|
|
|
|