Click here to Skip to main content
13,259,194 members (50,811 online)
Rate this:
Please Sign up or sign in to vote.
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.
Thank you.

Note: Also there is code which sybase recommend is to use the library ( need to buy the library) to grab the data when data window retrieve passes the data to Ole target data.
settings = dw.Describe("")

I dont know how much the above code is help full, but I really dont want to buy the library for now.
Posted 31-Oct-12 21:40pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171114.1 | Last Updated 1 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100