4GL/ABL General Programming


[4GL/ABL] FOR EACH "nested" and "FOR EACH, EACH" is the same thing?

... or there's some substantial differences?

/* Trovare le righe d'ordine associate all'ordine dell'ultimo cliente nella tabella del DB */

FIND LAST customer.
DISPLAY customer.name.

FOR EACH order, EACH orderline OF order WHERE order.custnum = customer.custnum:
    DISPLAY orderline WITH FRAME a TITLE "MODO 1".
END.

FOR EACH order
:
    FOR EACH orderline OF order WHERE order.custnum = customer.custnum
    :
        DISPLAY orderline WITH FRAME b TITLE "MODO 2".
    END.
END.

[PS]
run with DB Sports2000


[4GL/ABL] Experiment: variable & widget

I made this code:

---------------

/* TRIGGER */
DO:
  /* Tentativo da oggetto a variabile */
  ASSIGN fill-in-1 = INPUT fill-in-1.
  DISPLAY "1] " + fill-in-1 @ fill-in-1 WITH FRAME fMain.
  
  /* Tentativo attributo dell'oggetto */
  ASSIGN fill-in-2:SCREEN-VALUE = "2] " + fill-in-1.
  
  /* extension version of assign? */
  ASSIGN toggle-1 = INPUT toggle-1.
  /* compact version of assign? */
  ASSIGN toggle-2.
  
  /*
  ESEMPIO in C
  i = i + 1.
  i++.
  ++i.
  */
  
  IF toggle-1 THEN DO:
                MESSAGE "toggle1".

[Test] How connect a client to a (remote) server with ProEnv?

On the server machine i've start a broker on port 3200 with:
proenv> proserve MyDb -H ServerIp -S ServerPort -N TCP -n 5 -Mn 10 -Mpb 5 -Mi 1 -Ma 10 -ServerType ABL

, while on the client machine i've start
proenv> prowin32 MyDb -H ServerIp -S ServerPort

TNX.


[4GL/ABL] IDE, color editor, color printing of code & source code formatter (like "AStyle"): how?

Good morning to all guy! :)
I'm a new italian user of OpenEdge SW suite, so sorry for my bad english. :(
I come from C, PHP and SQL languages and now i start to work with OE.
---

I'm usual to use the "Code::Blocks" IDE, where ther's also the function of source code formatter (like "AStyle")
[IMG]http://img215.imageshack.us/img215/5196/i1ip5.png[/IMG]
For the Web, for example, i use:
[IMG]http://img215.imageshack.us/img215/6469/i2eq5.png[/IMG]

My cheaf, for example, use UltraEdit:
http://www.ultraedit.com/downloads/ultraedit_download.html


[4GL/ABL] Reverse: from DB's schema to table's relationship is possible?

Good morning to all guy! :)
I'm a new italian user of OpenEdge SW suite, so sorry for my bad english. :(
I come from C, PHP and SQL languages and now i start to work with OE.

My team received a lot of SW to debug (), but don't exist the relative documentation and so we are scared to mod part of the code because we ignore the side-effect of the mod. ;(

I ask to you if is possible rebuild the relationship starting from the DB, a kind of:
TABLES
--->
E-R SCHEMA
[IMG]http://img223.echo.cx/img223/1542/eerproject5vo.gif[/IMG]


[4GL/ABL] Regular expression is possible to do in this language?

Good morning to all guy! :)

I'm a new italian user of OpenEdge SW suite, so sorry for my bad english. :(

I come from C, PHP and SQL languages and now i start to work with OE.

My first question is relative at the "regular expression":
http://en.wikipedia.org/wiki/Regular_expression
http://www.regular-expressions.info/
http://php.html.it/articoli/leggi/851/espressioni-regolari/

, can i use this "power tool" with the frame's fill-in or form's textbox?!
I think to use these to ckeck the validate of the string in input.

TNX a lot!


Column Searching Using Freeform browse Widget

Hi to All,

Is it possible to use Freeform Browse widget in column search like using a physical database table?

Please help if someone know about doing this..

I'm using Progress 9.1A

Thanx..


Call procedure from external program

Hi all,

We investigating ways to call a procedure from an external program, but so far have no success. Specifically, we have a .NET application that needs to initiate a procedure file in an existing OpenEdge session.


Passing Tables on a Template (Possible or a Myth)

Hi,

Is it possible to create a template for several tables where in the contents of the window depends on what table is passed on the template. This Window might contain fill-ins and a browse.

This window should have several functionalities such as Add-Edit-Delete-Save..

Any idea will be a big help.. Thanx


Syndicate content