I'm using a VB.NET code found in the ESRI Resource Center to list the content of a GDB. For some reasons, it's not working. It hangs or I get an empty string value.Here's my code:
Imports ESRI.ArcGIS.Geodatabase
Imports ESRI.ArcGIS.Carto
Imports ESRI.ArcGIS.esriSystem
Imports System.Windows.Forms
Imports ESRI.ArcGIS.Geoprocessing
Imports ESRI.ArcGIS.Geoprocessor
Public Sub test()
Dim gp As New ESRI.ArcGIS.Geoprocessor.Geoprocessor
gp.SetEnvironmentValue("workspace", "G:\Data\GDB\Production.gdb")
Dim fcs As ESRI.ArcGIS.Geoprocessing.IGpEnumList = gp.ListFeatureClasses("*", "", "")
Dim fc As String = fcs.Next()
Do While fc <> ""
fc = fc + vbNewLine + fcs.Next()
Loop
MsgBox(fc)
End Sub