The below written article in C# is great and really really helped me alot. First thank you for sharing the article.
PowerBuilder – Using C# Visual Objects in PB Classic Applications
I have a one question, regarding powerbuilder datawindow retrieve for ole object which I want to trace through C#.
Here is what exact where I'm stuck in figuring out the retrieve option.
1) I have created line graph exactly as you explained for creating the "track bar" which is VB6 Interop control. The graph pulls the data through SQL stored procedure which takes one argument/parameter (i.e Id).
2)I have created a new OLE datawindow (adding stored procedure to it) and placed the above created graph control in the powerbuilder datawindow.
3) So, normal datawindow funtionality for Ole objects is, it retrieve the data through stored procedure and passes the data through "target data (datawindow property)" to Ole object.
4) I'm stuck here, where i need to capture the data (for example 'id' value) when datawindow stored procedure passes the id to Ole object.
I could be really help full if some one can assist me how to grab there data from the Powerbuilder ole datawindow through C# interop code.
If you please can help me in the above case would be really help full. Your help is much appreciated.
Looking forward to you.
Note: Also there is code which sybase recommend is to use the sybase.datawindow.net library ( need to buy the library) to grab the data when data window retrieve passes the data to Ole target data.
settings = dw.Describe("ole1.target")
I dont know how much the above code is help full, but I really dont want to buy the library for now.