1. Herbert Hader
  2. PowerBuilder
  3. Monday, 27 November 2023 13:26 PM UTC

Hello all,

being a newbie with PB2022R2, I wonder why the migration assistant lists the lastpos Powerscript function in its scan result? I see no syntax change nor a deprecation notice in the current documentation.

 

Thanks, Herbert

 

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 November 2023 05:54 AM UTC
  2. PowerBuilder
  3. # 1

Hi Herbert,

Migration Assistant lists not only obsolete functions but also new ones. The LastPos function is supported from PB8 onwards. In the output, you can see that the 'Suggested Replacement' column for LastPos is 'New PowerScript Method'. PB 12.6 has the same behavior, and we have followed the process of PB 12.6.

If you do not need it to show the changes to PB 12.6 or earlier, please uncheck 'Version 12.6 or earlier' on the select version page of Migration Assistant.

Regards,
Kai

Comment
  1. Herbert Hader
  2. Tuesday, 28 November 2023 16:05 PM UTC
Thank you, Kai. Indeed I thought I should replace the lastpos method, when I read "new powerscript method" under "suggested replacement".



KR, Herbert
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 27 November 2023 14:14 PM UTC
  2. PowerBuilder
  3. # 2

Hi.

I also saw that in Bruce's presentation in Elevate 2023.

I'm not sure why this happens to the migrator, but I guess this is a mistake. There are three functions to find last position (occurrence) of a character.

This is the same for pos function. In pos only posw is marked a obsolete. But, in documentation we do have reference for pos, posa, posw. Only in case of lastpos it seems that lastposa and lastposw do not exists in documentation. You can always open a support ticket (New Bugs | Appeon) to have that checked and corrected in documentation if needed.

Andreas.

Comment
  1. Chris Pollach @Appeon
  2. Monday, 27 November 2023 15:34 PM UTC
Hi Guys;

Yes, this is a bug. Please open a support ticket for this improperly flagged command.

Regards ... Chris
  1. Helpful
  1. Kai Zhao @Appeon
  2. Tuesday, 28 November 2023 06:07 AM UTC
Thanks for pointing out the LastPosA & LastPosW issue, we will do further research to figure it out.
  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.