Referring to Object Number

Is there a way to get the currently loaded object number in code? For instance, if I want to know what the currently loaded report number is? Devin W. McMahon, MCDBA

Actually, reports do have the property CurrReport.ObjectID, as do Forms. A dDataport and Codeunit don’t have it, and a table ObjectID can be read with a little work-around by doing a Find with the TableName on the table with Objects. However, seeing you have a VB background, don’t expect to be able to use the ObjectID as referential parameter in a call to an object. There are only a few instances where that’s possible (see Run, RunModal). John