Joke Collection Website - Blessing messages - How to write a program that can read data in Powerbuilder's data window?

How to write a program that can read data in Powerbuilder's data window?

Idea 1, when PowerBuilder finds the result, it will display the result in the data window, and then store the result in. Xml, and use a program other than pb to parse this xml.

Idea 2: develop a control by yourself and call it in a non-pb program.

-Replies from China software users.

I've tried it before, and it's ok. I used the GetWindowText API function to get it.

The specific method is: get the handle of the data window, then take out the handle of the edit box on the data window, then take out the text from the edit box, then send the tab key to the data window to move the focus, then take the next one, and so on.

As for why you want to take the handle of the edit box on the data window, here is an explanation. The current focus of the data window is actually an editing control. You can tell by listing the controls in the window.

If you don't understand anything, just send me a message.