For Practice

Posted by Arjon Policar on 06-Apr-2016 08:43

Hi! Everyone I am new in progress and I'm still studying this language. Can you help me o syntax of opening another form for example in vb.net the syntax is just "Form.show" what is the equivalent of this in openedge 11.6. Thak you, I hope you will help me.

Posted by cverbiest on 06-Apr-2016 09:04

OpenEdge has different forms of UI, code below opens a .Net UI form.

define variable myForm as Progress.Windows.Form no-undo.

myForm = new Progress.Windows.Form().
myForm:show().

Posted by Mike Fechner on 06-Apr-2016 09:05

This document will help you translating .NET code to OpenEdge GUI for .NET: documentation.progress.com/.../dvngm.pdf

As .NET objects are used like ABL objects, this may be useful as well: documentation.progress.com/.../dvoop.pdf

DEFINE VARIABLE oForm as MyPackage.MyFormClass NO-UNDO.

oForm = NEW MyPackage.MyFormClass() .

oForm:Show () .

Generally you should post programming questions better in this forum here:

community.progress.com/.../openedge_development

All Replies

Posted by Joseph Kreifels on 06-Apr-2016 08:48

Would you be using the window widget? I program with Open Edge on Linux, so Open Edge on Windows is out of my experience, but I assume this example is what you need.

DEFINE VARIABLE w AS HANDLE NO-UNDO.

CREATE WINDOW w ASSIGN 
    WIDTH = 50
    HEIGHT = 5
    MESSAGE-AREA = FALSE
    STATUS-AREA = FALSE.   

CURRENT-WINDOW = w.

Posted by Arjon Policar on 06-Apr-2016 08:59

Thank you @Joseph Kreifels for the reply, but what I really meant to say was I want to open the form on the Run time , the form was already existing , and I want to open in through clicking the button but I dont know the syntax. Can you help me?

Posted by cverbiest on 06-Apr-2016 09:04

OpenEdge has different forms of UI, code below opens a .Net UI form.

define variable myForm as Progress.Windows.Form no-undo.

myForm = new Progress.Windows.Form().
myForm:show().

Posted by Mike Fechner on 06-Apr-2016 09:05

This document will help you translating .NET code to OpenEdge GUI for .NET: documentation.progress.com/.../dvngm.pdf

As .NET objects are used like ABL objects, this may be useful as well: documentation.progress.com/.../dvoop.pdf

DEFINE VARIABLE oForm as MyPackage.MyFormClass NO-UNDO.

oForm = NEW MyPackage.MyFormClass() .

oForm:Show () .

Generally you should post programming questions better in this forum here:

community.progress.com/.../openedge_development

Posted by Arjon Policar on 06-Apr-2016 09:54

Thank you Sir! I highly appreciate your help.

Posted by Arjon Policar on 06-Apr-2016 09:58

Thank you Sir! I highly appreciate your help.

This thread is closed