ABL(4GL) General Programming Group

This group is for topics on coding in ABL (formerly known as Progress 4GL). Topics include code snippets, code examples, utility programs, tricks, techniques, and patterns. There are other groups for other more specific topics like Win32 API, OO programming, and specific programming tools.


Writing file

Hi all!
I try to write file.

OUTPUT TO "/home/user1/dir1/111.txt".
  PUT UNFORMATTED "TEST1" SKIP.
  PUT UNFORMATTED "TEST2" SKIP.
OUTPUT CLOSE.

If directory "dir1" don't exists how can I catch write-error exception?


Tools for Reverting *.r back to *.w/*.p

Hi Guys,

Any tools (Free Hopefully) to revert *.r file back to *.w or *.p ?

Regards


Open a Windows from a Dialog

Hello Everybody,

We are using both Dialog and Windows to design screen, and want to open
a Windows from a Dialog button call.

As Dialog cannot open Windows (WAIT-FOR issue), was wondering is it
would be possible to change Windows behaviour by code.
Meaning, using a parameter + inside code to handle : "Windows mode" /
"Dialog mode".

Please note for various excuses, we cannot afford to fully redesign one
screen from Windows to Dialog nor Dialog to Windows.

My guess was :
- inside 4GL code ? (but maybe AppBuilder won't appreciate)
- using .dll code ?

Config :


Problems with Inserted Images (OE 10.2B/Office 2010)

A new Word issue is surfacing in our application now that we are on 10.2B. We are no longer able to create re-openable Word documents in which we have inserted images. The application has been in production for over 1 year, but since upgrading to 10.2B, this problem has arisen.

We are using the "Word.application" automation object, and insert the images (usually into tables) using:

chShapes = chRange:InlineShapes.
chShapes:AddPicture(opsysfile).

Behavior:


Word Documents Created from OE

The project creates Word documents using the Office Automation object based on user selected database content.


Error 3406

Hello,

When I execute the shortcut:
C:\OpenEdge\DLC\bin\prowin32.exe -basekey "INI" -pf X:\SCQ\script\pf\T.sice.pf -p c:\temp\datadigger\DataDigger.p.
I receive error Unknown attribute sort-ascending use in widget:attribute phrase. (3406)
Some suggestion for resolve this problem?

Thanks.


Ubuntu 10.10 Maverick Meerkat

Ubuntu 10.10 Maverick Meerkat

Converting app from 9.1D to OpenEdge - What became of the 9.1D function 'GetPanelFrame' in OE?

Hi All,

WinXP/Win7 ADM2:

Migrating one of my apps from 9.1D to OpenEdge. Hoping someone can tell me what became of the 9.1D function 'GetPanelFrame' in OE?

I'd been using it to determine the handle to the dynamic toolbar frame.

I'd then do some panel-frame size calculations and insert/manipulate toolbar buttons dynamically using 'CreateButton' function which requires the Panel Frame handle. See pseudo code below:

DEF VAR v-PanelFrameHdl AS HANDLE NO-UNDO.
DEF VAR v-Pix AS INT NO-UNDO.
DEF VAR v-Caption AS CHAR NO-UNDO.


DotNet Data Types

I am using OpenEdge 10.2.B and need access to the DotNet Long datatype as well as the Byte array. Is there some documentation somewhere that shows me how to reference those inside Progress?


Change is in the air! -- Carrying the "Spirit of Revolution" from the Middle East into your development Department

Changing the programming culture can eliminate many problems, without the need to develop skills and expertise for a new tool.

Here's a step by step guide to how to go about it, and some ideas about what the advantages of this approach could be.

So, follow the call to revolutionize your development department's culture and usher in a new era of productivity and quality...


Time difference - standard library

Is there a logic in your standard libeary for calculating the difference between start time and end time....

I have 4 parameters.... start date, end date, start time and end time....

Need help...


Switching away from OpenEdge

Abe Voelker drafted a beautiful write-up about how to switch away from OpenEdge.
Cure for the Plague: A Theoretical Progress OpenEdge ABL Migration Plan

He suggests to use JRuby (or maybe Groovy, or Java), because they are OS and data-store independent, modern (i.e. OO), allow easy CRUD data-access, and support Web application development.

I admire his energy, the extended effort to research, and the kindness to share his insights with the world.

I am a bit surprised, though, by his dislike of the ABL. I L-O-V-E it!


Create an Secure Socket (SSL3) Connection with Progess Version 9

Is it possible to create an secure socket connection for posting data using:

CREATE SOCKET Socket$h.
Socket$h:CONNECT('-H ' + postData.Host + ' -S ' + postData.Port) NO-ERROR.

(Some background info: I need to make an connection with the UPS-server. This works but it responds with a http 400-error:

Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
)

Anyone encountered this problem before? How did you solve it? Or do you have an idea in which direction to look for the solution.


Employing AppServer Made Easy

Many companies are contemplating to use AppServer, but are deadly afraid of doing so. Here are some thoughts about how to make developing and maintaining AppServer applications easy and very feasible.

There are three main issues I encountered over the years:

a) Increased Development Time:

I used to think, that the top-main issue that AppServer novices run into is the amount of time it takes to get a program working, if the back-end is on the AppServer, which the front-end is using to access data.


#
Syndicate content