*|*Programmatically defined class definition-Asset *|* Jim Newsom 01/04/01 DEFINE CLASS Asset AS dataobj Name = "Asset" TableName = "Asset" ID = 0 Number = " " Description = " " Active = .F. PropertyManagerID = 0 ClientId = 0 ClientPropertyTypeId = 0 Procedure Setvalues *|* Method Setvalues With this .ID = .myrecordset.Fields("ID").Value .Number = .myrecordset.Fields("Number").Value .Description = .myrecordset.Fields("Description").Value .Active = .myrecordset.Fields("Active").Value .PropertyManagerID = .myrecordset.Fields("PropertyManagerID").Value .ClientId = .myrecordset.Fields("ClientId").Value .ClientPropertyTypeId = .myrecordset.Fields("ClientPropertyTypeId").Value EndWith EndProc Procedure Update *|* Method Update With this .myrecordset.Fields("Number").Value = .Number .myrecordset.Fields("Description").Value = .Description .myrecordset.Fields("Active").Value = .Active .myrecordset.Fields("PropertyManagerID").Value = .PropertyManagerID .myrecordset.Fields("ClientId").Value = .ClientId .myrecordset.Fields("ClientPropertyTypeId").Value = .ClientPropertyTypeId EndWith EndProc ENDDEFINEI was actually wanting to put these into a VCX, but could not find a way to get them in there :) I then wrote a 2nd prg to instantiate each class and then invoke the SaveAsClass method to put it into the VCX I chose for this.