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.
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().
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:
Architect of the SmartComponent Library and WinKit
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.
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?
Thank you Sir! I highly appreciate your help.