1. Le Anh
  2. PowerBuilder
  3. Monday, 9 September 2024 07:50 AM UTC

Hi,

I have some PowerBuilder projects (version 12.6 or earlier, 17). When I run the Migration Assistant (from PB 2022 R3), I receive many messages about LenA, PosA, RightA, LeftA, etc., indicating “New DBCS backward compatible string function.”

Ex:

line searchfunc replacefunc
ls_temp = space(lena(as_data)) LenA New DBCS backward compatible string function



I understand that we need to replace these functions (LenA, PosA, RightA, LeftA, etc.) with the new DBCS backward compatible string functions when migrating projects to PB 2022 R3.

However, when I create a new PB 2022 R3 project and test the LenA function, it works well.
So, what should I do? Should I replace these functions?

Please help me.
Thanks

Note: I'm working in a DBCS environment.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 9 September 2024 13:21 PM UTC
  2. PowerBuilder
  3. # 1

Hi Le Anh;

  If the App is working well in 2022R3 in your testing then there is no rush. I would however (IMHO) save the migration report as a "ToDo" list. Then when you are updating the app for other enhancements, you can slowly address these deprecated command changes. HTH 

Regards ... Chris 

Comment
  1. Andreas Mykonios
  2. Tuesday, 10 September 2024 08:45 AM UTC
Hi Miguel.

It's possible to overwrite a system function. But in this case the problem is that the programmer is using LenA instead of Len etc. Of course, this can be changed only after performing some tests. Also, I believe that, overwriting a system function would not affect the migration assistant generated report.

Andreas.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 10 September 2024 12:00 PM UTC
Hi Andreas,

Yes, we already know that the problem is the use of LenA() etc, since that's what the OP is reporting.

I'm not sure if the only problem are the warning messages when migrating, but in that case, I think there a check box for DBCS checks that can be unchecked.

regards
  1. Helpful
  1. David Peace (Powersoft)
  2. Tuesday, 10 September 2024 12:22 PM UTC
I'm with Chris, if it works then it is no longer a priority to resolve. Just remember that you need to deal with it sometime.
  1. Helpful
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.