powerbuilder

PowerBuilder: international currency formatting

Background Users in the US were our application's initial user base, but this has expanded to the point that Canadian, British, and Scandinavian users also use the system. The PowerBuilder datawindow didn't like the Scandinavian currency format with decimals and periods transposed (###.###,00). When we tried to set the format in the d...

Porting a PowerBuilder Application to .NET

Does anyone have any advice for migrating a PowerBuilder 10 business application to .NET? My company is considering migrating a legacy PB application to .NET (C#) and I am just wondering if anyone has any experience - good or bad - that you would like to share. The application is rather large with 10 PBL libraries, some PFC as well as...

How to use VBScript in Powerdesigner ?

In Powerdesign would like to create a VBscript to rename/reform the following names in powerdesigner- Conceptural or Physical model Alternative/Unique Key Name: *UQ {table_name} {tablecolumnname}* /////// Example = UQ_Account_AccountNumber Relationship Name: FK{table_name}_{reference_table_name}_{reference_col...

.NET interop in PowerBuilder

I'm looking for a way to do two-way communication between a PB object and a .NET (C#) object. In looking at Brad's .NET version of his GUI controls, I see how to give the .NET object a reference to the PB object. But in that example, it's cast as a PowerObject (basically). That C# code only calls TriggerEvent() on the PB object. I want ...

Same function in different windows in Powerbuilder

Hi, I have two windows let say w_base1 and w_base2. Now in w_base1 I have below statement written which is working fine. ls_Value = This.GetItemString(ll_CurrRow, "af_value") Now the same above statement I want to use in w_base2 but it is giving below error: Powerbuilder Application Execution Error (R0002) Application Terminated....

.NET equivalent of this native code using crypto api

Hi, I have following native code (Powerbuilder) with uses the Crypto API to encrypt a string. I need C# code to decrypt the encrypted data. Can somebody give me a hint or sample? Thanks, Jaap private function blob of_encryptdecrypt (blob ablob_data, string as_password, boolean ab_encrypt) // ------------------------------------------...

Is contributing internal tools to open source worth the effort?

I know this is a general question, but I'd like to hear other people's opinion about our case: I work in a small company. Our main development tool is PowerBuilder, which is a very limited IDE with a shrinking community. We've created some tools, which we use internally to solve a certain needs. They have neither been properly designed ...

Spy++ for PowerBuilder applications

Hi, I'm trying to write a tool which lets me inspect the state of a PowerBuilder-based application. What I'm thinking of is something like Spy++ (or, even nicer, 'Snoop' as it exists for .NET applications) which lets me inspect the object tree (and properties of objects) of some PowerBuilder-based GUI. I did the same for ordinary (MFC-...

Load PowerBuilder extension automatically

Does anybody know whether it's possible to make a given PowerBuilder application (for which I usually don't have the source code) load a custom extension (a nonvisual extension) which I provide? I know that I could add my .pbd to the library list of the PowerScript target in PowerBuilder, but when given a complete PowerBuilder-based GUI...

Closing currently opened window while change in another window in power builder

Hi, I am currently using powerbuilder 6.5 In my application, i want to make a code where any change in one window should reflet another window.Two windows are using the same table. if we channge in one window it is not reflecting in another window if the other window is opened earlier. what cani do? ...

PowerBuilder 11.5 & Version Control

What is the best version control system to implement with PowerBuilder 11.5? If you have examples of how you have did branching/trunk/tags that would be awesome. We have tried to wrap our heads around it a few times and always run into problems because we use shared libraries such as PFC/PFE in multiple applications. Right now we ar...

PowerBuilder equivalent to Debug.WriteLine?

Hi - I've got a PowerBuilder project that calls my .Net class library exposed to COM. I'm very new to PowerBuilder and just starting to pick it up. Id like to create some simple tests for my COM calls and I've looked for quite a while and can't find anything that is similar to the VS Diagnostics methods. Does this functionality exist? ...

Is there a way to export powerbuilder application to text?

I want to start controlling our inhouse applicatoin using Git. And I thougth that if I can export all the application to text (not exporting object by object) and then using Git in them. And of course I will need a method to import this text files into powerbuilder if I need to make a merge or revert some changes. Another solution c...

Is there a viable SCC integration for Subversion?

What recommendations do you have for a Subversion client that supports Microsofts standard SCC API? So far, I've found two possibilities: TortoiseSVN SCC. Seems neither mature, active nor supported (no release since Jan 2005) SVN Plugin from PushOK. Commercial, with pricing hidden behind a login page. Neither of these seem particula...

Any testing tools that can test a PowerBuilder app and a webapp?

I'm working on developing a webapp that will replace an existing PowerBuilder app. They should be functionality equivalent, and the requirements for the PB app are long gone. So the best way to test seems to be to input the same data into the same screens, and compare the output. If the PB output and the webapp output are the same, it's ...

If the users edit the rich text control data in runtime how to save the RTF output to the database in Powerbuilder

If any formatting is done in runtime in richtext how to save it to the database in PowerBuilder.Pls provide with me an example ASAP.Let me know whether is it possible to do it? Very Urgent.. Pls somebody help?? ...

What's the API of PowerObject or WindowObject classes?

I'm currently developing a PowerBuilder application and noticed that each window features a 'ParentWindow' function. However, there doesn't seem to be a 'ChildWindows' or anything like that. Unfortunately, the Documentation at sybase.com just says that these base classes are not documented. Maybe somebody figured it out anyway, using so...

PowerBuilder API Function issues

i'm using ShfileOperation in PB10 i got the following error PB Version is 10.2.0 build 7516 Error Calling external function%s at line... how to solve it? ...

How to show the Windows File copying progress dialog throug PB?

I used the functions CopyFilea and ShFileOperation. CopyFileA it copied the file(large cumbersome data). but it didn't show the Copy Progress and Also tried in SHFileOperation api this shows the error. PB Version is 10.2.0 build 7516 Error Msg: Error Calling external function %s any body Please give me a solution? ...

Does IsNull() guard against references to null objects?

In my PowerBuilder application, the following code segment causes an R0002 error at runtime (a null object is being referenced): Window w = windows[idx] IF NOT IsNull( w ) THEN MessageBox( "", "ClassName is " + w.GetClassName() ) // This line crashes END IF Does anybody know why that is? I was under the impression that IsNull() is...