Using vb.net, my custom tool needs to create a data table in my geodatabase to store some information for later use. The user will be in ArcMap 9.3.1 with the geodatabase up and layers displayed. I want to create the table at the same level as the dataset. I can accomplish this with the following:
gp = CreateObject("esriGeoprocessing.GPDispatch.1") gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx") gp.createtable_management("C:\Dan\Data\geodatabase.mdb", TableName, "", "")
However, the problem is I cannot figure out how to have the geodatabase be something other than hardcoded. How do I get the current geodatabase name and use a variable populated with that name in the createtable_management line?
I've searched high and low for two days now with no luck.