Dear community,
I working on new free tool and faced a problem with no idea how to deal with it.
I have C# application. I need to know what object is currently selected in NAV object designer.
I get handle to
NAV. (IntPtr)
I get handle to Object Designer.
I get handle even to
C/SIDE SubForm.
But what to do next...
Comments
The trick is to use the windows api's to copy the selected lines in the object designer window to the clipboard, then parse the copied text data to extract the object numbers. The data is tab delimited and the first line contains the column headers. All you would need to do is parse out the position of the column 'ID' in the first line, then extract all values in that position from the following lines.
Many thanks to Thaddeus Ryker!