Discussions tagged C#

Hi,  I was able to convert PB datawindows to C# and currently I am trying to convert my whole PB app to C#. In PB I used an operation .GetItemNumber(), but what would this operation be in C# for the DataStore? There are three that I see that might b...
Hi, I was googling online to see if this is possible but I'm not sure it is. If I'm correct it was possible in PB2018, there was a CSharp Editor but I can't find how to do this in 2022. I know SnapDevelop is used to code in C# but then I have to eit...
Hi! I'm currently trying out the conversion from PowerBuilders DataWindows to C# using snapDevelop. Converting was the easy part, but I'm a little confused on how to use these C# files within my PowerBuilder 2022 app (if its even possible). Or maybe ...
Hi everyone! I've been stuck on this for almost two weeks now so I thought it might be best to ask here, is it possible to convert Powerbuilder DataWindows to C#? To my understanding I need SnapDevelop to convert but I don't have a license for that....
I'm trying to call a simple dll function to measure a piece of text, to see if it will fit in a confined space without being clipped. I have defined an external DLL in C# and have linked it into the PB source using external function.   In my first...
Hi all, I am trying to work on API service for our ERP system Invenotry function, need make use of nested Json structure to pass values: using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonso...
Hello, I just want to know if there is any special reason for GetJWTToken function if it's doing (almost) exactly the same as SendPostRequest. I see that GetJWTToken has extra return status:  "-5 -- Failed to get token" (and has SendPostRequest "-1...
Hi, we are using the addToLibraryList() function to dynamically extend the library list of our application, to dynamically use other/new powerbuilder objects like datawindows etc. This seems to be not fully supported anymore when deploying a powerse...
Hello,  We have a client app we built with PB2019R3 build 2703 and used SnapDevelop to build an API so that we can have a cloud app where the PB client runs on the users' local machine but the database and all data-access will be on Azure in the clo...
Hi,I am trying to use the feature that include PowerBuilder to Import .NET DLLs.So I have created a very basic app with PowerBuilder that include a non visual object imported with the Tool .NET DLL Importer.This non visual object is a C# .NET DLL mad...
Hi, I'm using the SnapObjects SelectProcedure function in a web api and I want to know how to catch an error that occurs in the stored procedure (from a RAISERROR command in the stored procedure.)  The SelectProcedure works ok and fills my model with...
Hello,We build a C# dll to use the SendInBlue's API (https://www.sendinblue.com/)We want to call the function from PowerBuilder 2019 build 2170.We pass as argument a string array that contains a list of recipients.When we check the contents of the ar...
How do you do a sort off of multiple fields? The SortBy for a C# DataStore only seems to accept one key field. Thanks,Bernie...
I would like to digitally sign a PDF file using PowerBuilder 2019. Since I was explained PB 2019 is currently not supporting this, here is the question for community. Is there is a 1. Windows DLL that can be used as a global External function from...
Hi, I'm here because one of my customers ask me the effort needed to migrate a PowerBuilder app to C#. I've tried to do it with the trial version, however after spend 2 day's and followed "using powerscript migrator" (https://docs.appeon.com/appeon_...
When we want debug our ActiveX components written in C# (Visual Studio) and PowerBuilder the application starts and stops. We have enabled 'Enable native code debugging' and 'Use Managed Compatibility Mode'. When we use PowerBuilder 12 is starts Po...
Will powerscript die and be replaced by C#? ...
Hi all One of the features I like most about PB19 R2 is the support .net assemblies. The C# class importer is a very useful tool.  I noticed that C# events are not yet supported. The message I am receiving is "Delegate classes are not supported". ...
Sorry I am sure this has been asked before but for some reason I can't find anything useful. Does PowerBuilder 2019 come with some new and wonderful way of calling C# code, non-visual I think, without having to use COM wrappers, or Web APIs, or any ...
Hi All, There is a blob column in one of our Oracle database that has to be displayed to the Users in our web site. We are coding a new REST Web API that one of our web sites is consuming the methods. The Snap Develop is the PB 2019, not the PB 20...
  • Page :
  • 1