1. Pranoy Sinha
  2. SnapDevelop
  3. Tuesday, 14 December 2021 22:44 PM UTC

Hi,

 

I used the Migrator option in SnapDevelop to transalate powerbuilder code to c# but get heaps of errors in the c# code. e.g.

1. every class has base.create(), base.destroy() etc but DataStore does not contain a definition for 'create' or 'destroy'

2. The powerbuilder code loads datawindow blob in datastore using syntax

      lds_Getinfo = create n_ds
     lds_GetInfo.setFullState(ablb_dwsyntax)

    Translated c# code

        lds_getinfo = new n_ds(); --n_ds class inherits from DataStore in the translated code
        lds_getinfo.setFullState(ablb_dwsyntax);

   Error: n_ds does not contain a definition for 'setFullstate'

 

How to I fix these errors?

 

Pranoy

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 14 December 2021 22:59 PM UTC
  2. SnapDevelop
  3. # 1

PowerScript Migrator is not going to do 100% migration.  It is only going to migrate things listed in the docs as supported: https://docs.appeon.com/powerscriptmigrator2021/Working_with_PowerScript_Migrator/index.html

GetFullState/SetFullState is one example of feature not listed in the doc under function section of DataStore so it is not supported.

Migrating existing code to C# is going to require strong knowledge of C# and be prepared to do significant rewriting.  I highly doubt trying to do your project leveraging this Q&A is going to produce good result, and I recommend you consider working with one of our consulting partners: https://www.appeon.com/consultants/consulting-partners

In case you are looking for basically 100% automatic solution to deploy apps to the cloud, instead you should look at PowerServer: https://www.appeon.com/products/powerserver

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.