1. Martin Boros
  2. PowerBuilder
  3. Tuesday, 6 October 2020 17:54 PM UTC

Hi all,

I developed some appliactions in PB6. From then I worked in .NET C#. Now I have to maintain some applications in PB2017/19.

I have few questions.

I do like intellisense in C#, code completion, .... . In PB even in 2019 is still Intellisense someway wierd. Do you have any advice how to get back into PB script fast?

Some advices about best practices in PB now? It is quiet long time I was using PB.

Are PFC still a thing to use?

How about UnitTesting is it possible (any current fw or something) I found PBUnit and PowerUnit but these are 5+ years old and looks like death projects.

Are there any plans to use C# instead of PoweScript in PB?

Or is it valid to use bussines logic in assemblies (.NET) and PB let only display data?

How did one use DB Connections is it better to connect PB App to DB and then transfer data from PB do assembly and back again, then save data using PB app?

 

Sorry for too many questions, but I'm quite lost.

Thank you a lot.

Ales

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 6 October 2020 18:59 PM UTC
  2. PowerBuilder
  3. # 1

Hi Ales;

1) The PB IDE's script helper is AutoScript. Here are the settings that I like to use ...

2) The PFC framework is now Open Source since PB 10.0. Newer versions can be found at:

https://github.com/OpenSourcePFCLibraries

3) Yes, PBUnit and PowerUnit are basically "long gone".

FWIW: Have a look at AscentialTest for PB: https://www.zeenyx.com/AscentialTest.html

4) No plans currently in PB to move off of PowerScript.

Note: the new SnapDevelop IDE that comes with PB CloudPro edition is fully C# though

5) PB 2019R2 and higher editions can use .NET Assemblies directly.

6) Normally, DB connections are direct but, you can now use PowerServer and/or .NET Assemblies if you like. The design of your C/S App to use one or the other is up to you based on your App's needs. Personally, I am a fan of Stored Procedures too (check out the new SP DW).

FYI: https://docs.appeon.com/pb2019/migrating_pb_apps/index.html

HTH

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 6 October 2020 19:37 PM UTC
Welcome back Martin to 4GL visual programming - not that 3GL C# and Java stuffy syntax stuff - LOL!
  1. Helpful
  1. Martin Boros
  2. Tuesday, 6 October 2020 20:09 PM UTC
One question. Net assemblies has to be .Net Core 2.1 or it can be 3.1 or .NET full framework?
  1. Helpful
  1. Martin Boros
  2. Tuesday, 6 October 2020 20:12 PM UTC
Oh I see. I can specify .Net fw or .Net core in importer. I will try 3.1 .Net Core. But still I have to dive into power script. I forgot more then I thought :-D
  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.