class DataModRef example
The following code excerpt from a form class uses the data module shown in the example for class DataModule, which is stored in the file "teacher classes students.DMD"
this.DATAMODREF1 = new DATAMODREF()
this.DATAMODREF1.parent = this
with (this.DATAMODREF1)
filename = "teacher classes students.dmd"
dataModClass = "TeacherClassesStudentsDataModule"
share = 0
active = true
endwith