Skip to Content
author's profile photo Former Member
Former Member

Converting PB 9 classic app to .Net winforms


I have a powerbuilder 9 app and we are converting that to .net. To do this, I am following the below approach:

1. Convert powerbuilder 9 app to powerbuilder classic 12.5. - Completed successfully.

2. Convert powerbuilder classic 12.5 app to 12.5 app. - In progress, with build errors.

3. Create .Net dlls in 12.5

4. Refer 12.5 dlls in .Net winforms project to reuse the existing forms and the code. - Pending.

In step 2, I am facing issues for building the app successfully. After conversion, I got the below errors:

1. There is a functionality to create excel sheet. After conversion, there is an error at the below line.

- workbook.Sheets(1).CELLS[1,8].columnwidth=9

- Error C0014: Undefined variable: columnwidth

2. There is an error at GOTO statement.

- Syntax/statement in the code: GOTO IssuerLtrsOnly1, IssuerLtrsOnly1:

- Error: No label 'IssuerLtrsOnly1' within the scope of the GoTo statement.

I commented the above lines to see the successful build. Unfortunately, below is the error i got again and with this error I am unable to find the location of the error. On double click of the error, it is not pointing to the error location after target corecompile.

Target CoreCompile

Csc: Error CS1510 u_apol_nv_wizard.uf_display_step(II) (23,67): A ref or out argument must be an assignable variable

Could anyone suggest me on this ?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 09, 2014 at 11:03 PM

    You might want to post this over in the PowerBuilder Developer Center.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.