isInherited( ) example
Save the following class to cust.cdm in the folder mapped for the dBASESamples BDE Alias:
** END HEADER -- do not remove this line
//
// Generated on 02/24/03
//
class CustDATAMODULE of DATAMODULE CUSTOM
with (this)
left = -1
top = -1
endwith
this.DBASESAMPLES1 = new DATABASE()
this.DBASESAMPLES1.parent = this
with (this.DBASESAMPLES1)
left = 19
top = 135
databaseName = "DBASESamples"
active = true
endwith
this.CUSTOMERS1 = new QUERY()
this.CUSTOMERS1.parent = this
with (this.CUSTOMERS1)
left = 125
top = 45
width = 114
height = 127
database = form.DBASEsamples1
sql = 'Select * from "Customers"'
active = true
endwith
endclass
Save the following class to custinv.dmd also in the folder mapped for the DBASESamples BDE Alias:
** END HEADER -- do not remove this line
//
// Generated on 02/27/2003
//
class custinvDATAMODULE of CUSTDATAMODULE from "cust.cdm"
with (this.DBASESAMPLES1)
left = 19
top = 135
width = 115
height = 112
endwith
this.INVOICES1 = new QUERY()
this.INVOICES1.parent = this
with (this.INVOICES1)
left = 279
top = 45
width = 114
height = 127
database = form.DBASEsamples1
sql = 'Select * from "Invoices"'
active = true
endwith
with (this.CUSTOMERS1)
left = 125
top = 45
width = 114
height = 122
endwith
endclass
d = new custinvDatamodule()
oDsn = new designer()
oDsn.object = d
bInherited = oDsn.isInherited( d.INVOICES1 )
if bInherited
// do something
else
// do something else
endif