Now I've looked into this, I can see I should have passed a SQL string to the ListObjects function to save looping over the table. Ah well ....
Does anyone have any sample VB.NET code for ListObjects?
I used to use ListObjects to retrieve child objects but it was way too slow. I now establish a direct database connection. Samples of each here ....
ListObjects method:
Function GetNodeIDOld(ByVal lngParent As Long, ByVal strChild As String) As Long
'returns the node ID of a child of...
You need to alocate all the variables that you pass to the function before you use them. You then need to deallocate afterwards. LAPI functions do not pass variables, they pass long pointers to allocated memory.
Sample here. This function adds a new doc or does an Add Version if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.