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.


How to create WSDL

Hi All,

How I have to create WSDL?

Where I need to deploy that created WSDL?

What are the changes I need to do for creating WSDL

Rajaselvam.M


Using Microsoft CDO to send e-mail

You can use Microsoft's CDO object library to easily send emails from Progress using ActiveX.
It seems to use the local SMTP server installed with IIS, so you can get started with very little code.


Problem with smtpmail.p

I'm trying to use smtpmail.p with our email server, but having no luck. I've tried to duplicate the settings used in my email client, but there's something different that the ever-suspicious server picks up and it returns this message:

220-(servername) ESMTP Exim 4.68 #1 Thu, 04 Sep 2008 00:51:38 -0500 
220-We do not authorize the use of this system to transport unsolicited, 
220 and/or bulk e-mail.

TIPS FOR A PRO DATASET DEVELOPER

There have been a number of major milestones in Progress releases. The first that comes to mind in more recent times was the introduction of the appserver. Since then there have been other significant introductions such as super procedures, processing handles, and object orientated code. Another recent significant feature, which is the text of this paper, is the prodataset.


how to find methods and attributes for smartobjects

How do I find out what methods and attributes I can call for a smartobject? Specifically, I want to be able tell a smart data object to jump to a given record so it shows the record in the smartDataView that I have attached to it.
In python, you just type dir(). Is there any equivalent in Progress?

Thx


What is &ANALYZE-SUSPEND and &ANALYZE-RESUME?

There is no mention of these preprocessor directives anywhere in the ABL reference or handbook.
What do they do?


smartobjects howto

Does anybody know where there's some smartobjects tutorials? I need something like the ABL handbook where it shows you how to create a very primitive app. The ABL handbook does not mention smartobjects at all.
The "ADM and smartobjects" manual has no examples. I just need a quick and dirty example to get something concrete up and running.

Shawn


PERSISTENT & SUPER procedure in practice...

"called.p"

DEF VAR vcStringa AS CHAR INIT "Questa è la stringa di inizializzazione" FORMAT "X(40)" NO-UNDO.
DEF VAR vcFrameStampa AS CHAR NO-UNDO.
DEF VAR vcFrameTitolo AS CHAR NO-UNDO.
DEF VAR i AS INT NO-UNDO.

DO i=0 TO 5
:   
    vcFrameStampa = SUBSTITUTE ("fStampa&1", i).
    vcFrameTitolo = SUBSTITUTE ("Procedura di stampa &1", i).
    
    DEFINE FRAME vcFrameStampa WITH CENTERED TITLE vcFrameTitolo.
    
    DISPLAY vcStringa LABEL "Stampa"
            i LABEL "indice"
            vcFrameTitolo FORMAT "X(40)"

Try to print with FRAME: i made mistake...

DEF VAR i AS INT INIT 0.
DEF VAR j AS INT INIT 0.

DEFINE FRAME fCust
       Customer.CustNum LABEL "Cust#"
       Customer.Name
       Customer.City
       SKIP(1).

DEFINE FRAME fInvo
       Invoice.Invoicenum LABEL "Invo#"
       SKIP(1).

forCust:
FOR EACH Customer NO-LOCK WITH FRAME fCust
:
    i = i + 1.
    
    forInv:
    FOR EACH Invoice
    WHERE Invoice.CustNum = Customer.CustNum
    NO-LOCK WITH FRAME fInvo
    : 
        j = j + 1. 
    END.
END.

MESSAGE "i: " i "j: "j.

character coordinates vs pixel coordinates

Why the heck does one character equal 5 pixels by 21 pixels? Characters in 8 Point Courier New font are definitely NOT 5x21 pixels. This completely throws off all forms. Is there any way to change progress to use different character to pixel conversions?. Otherwise, I have to go through all the code and convert coordinates. This will be very painful.

Help!!!

Shawn


[FIND] There are difference with this 2 syntax styles?

FIND FIRST item.

and

FIND item 1.

?!?!?!


Jasper report barcode 128 greneration and rotation

Hello,

I am using Jasper Report 1.2 and now I want to represent an alphanumeric value as barcode in my reoport and it should show verticaly. Previously I was used a font to represent barcode but that is not supporting alphabets.Is there any free fonts that do the same or any other way? Looking forward for reply from any helping hand.
Thanks in advance.

--Hani


how to set default font

I'm in the process of converting a character based progress v7 app to v 10.1. Most of the code works in windows for the time being but I need it to use a fixed font. How do you set the default font to fixed?

Thx,
Shawn


Sample Preview of program excecution.

Sample Preview of program excecution.

Add query for your program

Add query for your program
#
Syndicate content