Search results

  1. O

    Question How to receive a handle in an External Procedure

    As Cecil posted, I think LONG is what you are looking for. I have rarely interacted with DLL's but I have seen examples like these: PROCEDURE GetSysColor EXTERNAL "user32.dll": DEFINE INPUT PARAMETER nIndex AS LONG. DEFINE RETURN PARAMETER iWinColor AS HANDLE TO LONG. END. PROCEDURE...
  2. O

    Question Error “System.ObjectDisposedException: Cannot access a disposed object.”

    With what I had to do and what you have found it does seem to suggest that the FormClosing method requires some actions to solve.
  3. O

    Question Error “System.ObjectDisposedException: Cannot access a disposed object.”

    I had something similar once, and like you it was only happening in different environments. I was not able to fathom out what was going on but it seemed some sort of repeat was going on and the close/exit was being applied twice. The second close was giving the error as the object did not...
  4. O

    .NET OCX on Progress 12.8

    Some of the components in mscom.ocx may already be naturally available as .NET components so you may not have to download or install anything. In Progress Developer Studio create an ABL form and if you expand Toolbox-Microsoft Controls it will show all the components available - see attached...
  5. O

    Open Excel without MS Office

    As Cringer posted, one option is to create Excel XML files, and although you can not create with advanced features they do not require any interaction with Excel. Apart from DocxFactory, a pure Progress solution to create Excel XML files is to use xmlspreadsheet.p written by Tom Bergman. I...
  6. O

    Answered Assembly.xml

    Also to add, for actual deployment if users are only running compiled programs then they do not actually require access to assemblies.xml. When you run from r-code, you don't need the assemblies.xml file because the assembly-qualified name of all referenced classes are in the r-code. If...
  7. O

    Answered Assembly.xml

    For PDSOE I normally just place in the relevant Project folder and it is automatically picked up. Another option is to set using the -assemblies parameter for the PDSOE project startup parameters - see attached.
  8. O

    How to clear the SCREEN-VALUE of a character LIST-ITEM-PAIRS combo-box

    Seems you have hit on the correct solution: https://community.progress.com/s/article/P21248 This is useful to know and better than using this method: https://community.progress.com/s/article/18664
  9. O

    How to solve looping problem

    This line is the cause because you have icsw.cono = icsw.cono: can-find(first icsd where icsw.cono = icsw.cono and icsd.whse = icsw.whse and icsd.ecommercety = 'y' no-lock) Change to icsd.cono = icsw.cono - you also do not require the no-lock for a can-find: can-find(first icsd where...
  10. O

    Question More Excel Questions and COM Handles.

    Although not Progress, a good alternative is to download the "Excel 2013 Developer Documentation.chm" file - Download Office 2013 VBA Documentation from Official Microsoft Download Center - and even though it is for an older version very useful because as you can see from the attached it works...
  11. O

    Question More Excel Questions and COM Handles.

    I initially thought that the Progress COM Object Viewer listed them all but as can be seen from the attached not the case. There are sites such as these that list the numeric values: https://learn.microsoft.com/en-us/office/vba/api/excel.xlautofilltype...
  12. O

    Macros, run an Excel macro from 4GL

    You can certainly run macros contained in other files using something similar to this: hExcel:Run("'Another Workbook.xlsm'!NameOfMacro"). As for loading info from another workbook that could be possible and think I did something similar many years ago but it is so long ago just cannot find it...
  13. O

    How can I export table with array columns

    Really surprised by this as it appears to by design: https://community.progress.com/s/article/P116984 Can you apply the suggested resolutions? If you need to export multiple tables then this dynamic option may be useful: https://community.progress.com/s/article/P4410
  14. O

    Macros, run an Excel macro from 4GL

    It is certainly possible to run an Excel macro from 4GL, and as a quick test created a simple macro in an Excel file which was the following: Sub Macro1() MsgBox "Hello World." End Sub Running this code in 4GL gave the message: DEFINE VARIABLE hExcel AS COM-HANDLE NO-UNDO. DEFINE VARIABLE...
  15. O

    Question ToolBox

    What you have done sounds fine and a possible improvement is to use Super Procedures: https://docs.progress.com/bundle/abl-reference/page/ADD-SUPER-PROCEDURE-method.html https://docs.progress.com/bundle/openedge-develop-abl-applications/page/Guideline-1-Use-a-single-super-procedure-stack.html...
  16. O

    Tutorial for .net GUI in openedge progress

    Yes, unfortunately, of all the links I listed here - Seeking great OpenEdge GUI development tutorial - only this is still valid: https://community.progress.com/s/question/0D54Q00007tFpLaSAK/openedge-ultra-controls-for-net-illustrative-samples To start you off, have a read of the GUI for .NET...
  17. O

    Question Example ABL .NET TreeView

    For a quick example connect to the Sports2000 database and run something similar to this: /* runorderstreeview.p */ DEFINE VARIABLE oOrderstreeview AS orderstreeview NO-UNDO. oOrderstreeview = NEW orderstreeview(). oOrderstreeview:Show(). WAIT-FOR...
  18. O

    Some questions about Developer Studio

    For (2), as Rob outlines, the AppBuilder functionality is integrated into PDSOE and the good news is this allows you to create character based UI's using either of the TTY options:
  19. O

    Changes being made to the Proedit section in ini file

    Tom, you are correct about LOAD and SAVE but have been assured no-one is doing that. Peter, thanks for the link, and trying some things can confirm that the procedure editor can set this if you do not specify a program to run. If the shortcut is similar to this it does not appear to change the...
  20. O

    Changes being made to the Proedit section in ini file

    In the past few weeks a shared Windows ini file on the server has twice had changes to the Proedit section, and although the changes have not affected anything I would like to know who or what is causing the changes. Whatever is happening is changing the settings from: [Proedit]...
Back
Top