Code Samples

Small fragments of ABL code which illustrate some principle or technique


No-focus bug vs feature

Prior to OpenEdge 10.1, when you click a no-focus, flat button in a window the window does not get focus. It's z-order among other windows is unchanged.

In 10.1A this feature (Progress calls it a bug) is fixed. Clicking a no-focus button now sets the focus to the window containing the button.

I'm looking for a way to get the old behaviour back.


How create an INSTALLER to my Progress Programs?

Hi:
I developed a Payroll System in Progress Version 9.1E and I want to you tell me that way I can create an Installer or what program I can use to install my Payroll System in others computers.

The PCs where it is needed install the Payroll System have the next characteristics:
- Windows XP Professional and Windows 2000

I hope any solutions, thanks.


Outlook Code Samples

Recently many people have been asking some questions regarding progress integration with outlook. Well i found most my outlook samples that i had. Some were written by some weren't.

Contents
-Outlook 2000 and XP GLobal Defs
-Read/Write Tasks/Appts/Notes/Emails
-Creating Items
-Outlook Events
-Docs
-VBScripts
And many more!


Natural Language

dollars.p - converts decimal amount to text

http://www.oehive.org/amduus/NaturalLanguage/


EQN

The software began as a simple algebraic calculator. Send it an algebraic expression in a string and it would return a string representing the numeric result.

The idea was that software using the system would be able to keep equations in a parameter file or database table allowing the user to manipulate not just the numbers for a value in the system, but how to calculate that value to begin with!
Imagine allowing a user to not only tweak numbers of an inventory level equation, but to configure the actual equation to determine inventory levels!


Codejock ShortcutBar and CommandBarsFrame

This is my first attempt at a blog, forgive me for any newbie blog errors.
I'm developing a non-smart Progress window using the Codejock ShortcutBar and CommandBarsFrame controls.
I use Codejock 11.1 and Progress 10.1B01

I cannot share the actual code I developed, but I will try to share some of solutions for issues I encountered.

ShortcutBar

Items

The items added using AddItem must be windows, passing the hWnd of a frame won't work.
Progress windows aren't really suited for this job, but with the extra undocumented


Get rid of those annoying dialogs when sending emails through outlook

This Code sample i posted at progresstalk. I found a place where i could write a snippet and have others be able to access it easily.

This little trick (I translated it from some VB code) will help you get away with the windows dialogs when sending email through out look.

I'm not a big user of SMTPMail.p because we have smtp disabled here, and we use MAPI. It seems like most people prefer SMTP. But i found a way to bypass outlook security. Get rid of those annoying windows dialogs that says another program is accessing outlook, do you allow this?


ABL(4GL) General Code Samples Book

This is the top level book/outline node for some general ABL (formerly known as Progress 4GL) code samples. This includes code snippets, code examples, utility programs, tricks, techniques, and patterns. There are other books and libraries for more specific topics, such as Win32 API programming and OO programming. This book is a more general catch-all.


Dynamic Query Tool Kit

A set of routines to aid with developing software containing dynamic queries. It greatly simplifies coding and readability.

With Progress Version 9.1, a very powerful feature was added to the language – dynamic queries.

Great as they are – it takes a lot of work to make use of this new feature. It is the purpose of this tool kit to aid with simplifying dynamic queries for the developer.

The tool kit provides a set of functions that can be used to open, navigate, extract data from, and close dynamic queries in a straight forward and easy to use manner.


Syndicate content