CLEAR
do wwDotNetBridge
LOCAL loBridge as wwDotNetBridge
loBridge = GetwwDotnetBridge()

*** Load our custom assembly
? loBridge.LoadAssembly("InteropExamples.dll")
? loBridge.cErrorMsg


loFox = loBridge.CreateInstance("Westwind.WebConnection.TypePassingTests")
?  loFox

*** Returns
loDS = loFox.GetDataSet()
? loDs

*** Note the DataSet related Properties rquire GetPropertyEx/SetPropertyEx/InvokeMethodEx
loTable = loBridge.GetPropertyEx(loDs,"Tables[0]")
? loBridge.ToString(loTable)

loRows = loBridge.GetPropertyEx(loTable, "Rows")
? loBridge.ToString(loRows)

lnRecs = loBridge.GetPropertyEx(loRows,"Count")
? lnRecs
? lnRecs
? VARTYPE(lnRecs)

FOR lnX = 0 TO lnRecs - 1
	loRow = loBridge.GetPropertyEx(loTable,"Rows[" + TRANS(lnX) +  "]")

    ? loBridge.GetPropertyEx(loRow,"ItemArray[0]")
    ? loBridge.GetPropertyEx(loRow,"ItemArray[1]")
    ? loBridge.GetPropertyEx(loRow,"ItemArray[2]")
    ? 
ENDFOR

RETURN
