Search results

  1. PatrickTingen

    Working with Progress 9.1A

    That should be enough, but I don't have a v9 on my laptop to test it. You could also try to open datadigger.p in the editor and press F2 and see what it does. More info on the classroom edition can be found here
  2. PatrickTingen

    Write to xml file

    Interesting tool, did not know it, but I like it already :) On topic: wouldn't it be simpler to put an image on the button with a 2-line label?
  3. PatrickTingen

    Working with Progress 9.1A

    To have a better environment, you could download and install the classroom edition and do some work from there. And to support exploring the database, you could try to use an old version of the DataDigger to see what's in the database and quickly browse through it. I am not sure if it will...
  4. PatrickTingen

    Working with Progress 9.1A

    Since we have some old shit programs based on ADM-1, could you make the docs available for me? Would be of help when debugging some of this old stuff
  5. PatrickTingen

    MDI WIndowsinwindows

    Question is (even after 20 years) why one would want this. I cannot imagine this being a comfortable user experience. For my swimming club, I work with a system to control memberships, and that is one that works with MDI. If you need some inspiration for new Dutch swear words, just watch me use...
  6. PatrickTingen

    How to get position in scrollable frame

    Dang, pixel perfect and perhaps even easier than calculating using the mouse coordinates
  7. PatrickTingen

    How to get position in scrollable frame

    Ha! That sounds promising. I will check it out tomorrow. In the mean time, I managed to find a workaround, which goes like this: I create a lot of fill ins that can be moved around. On start-move of a widget, I read the current position of the mouse and I compare that to the position of the...
  8. PatrickTingen

    How to get position in scrollable frame

    In our application I am implementing some drag & drop functionality. I am using a combination of the start-move and end-move triggers and the current position of the mouse. However, my frame is a scrollable one and as long as the frame is in its top position (ie, not scrolled) all works well...
  9. PatrickTingen

    Answered PS Timer question time

    If the PSTimer is the root of the problems, another option is to keep track of the time yourself. Place a timeout on the WAIT-FOR and handle your refresh after the wait-for and you determined that the timeout has taken place. Something like this: MAIN-BLOCK: DO ON ERROR UNDO MAIN-BLOCK, LEAVE...
  10. PatrickTingen

    Progress Engineer vs. Independent Contractor

    In the past I have had good experience with gradually migrating an ADM2 application to DWP, from Netsetup, but I don't really know how they are doing right now. What I /do/ know that their toolkit is extremely easy to work with, as opposed to working with ADM2, which I still don't really...
  11. PatrickTingen

    Answered PS Timer question time

    Just out of curiosity, what application is this, an (old) version of MFG/Pro? You say another process is running a pstimer. Does that program do something with the worktable? Is there an option to rewrite this part to work with a buffer parameter? Your code would then look something like this...
  12. PatrickTingen

    Answered PS Timer question time

    Its duct-tape programming, but since you're using worktables and locking them exclusively, the code is already basically lost, so (end of rant) you could try this: DEFINE SHARE WORKTABLE myWorkTable NO-UNDO field myField AS CHAR. DO TRANSACTION: FIND FIRST myWorkTable NO-ERROR . IF NOT...
  13. PatrickTingen

    Answered PS Timer question time

    A few suggestions you could try: 1. Use a buffer for the worktable in all places this is referenced. I have seen it solve problems in a lot of places where strange behaviour occurred 2. Use a temp-table instead of worktables. Not likely to be the cause of your issue, but at least it pulls you...
  14. PatrickTingen

    Named arguments for ABL procedures.

    Aaaarch, keep that include code away from my eyes! Why not use something like this: RUN fillCombo ( cbCustomer:HANDLE , "FOR EACH customer NO-LOCK" , "cust-num,name" ). /* Fill a combo box */ DEFINE INPUT PARAMETER phCombo AS HANDLE NO-UNDO. DEFINE INPUT PARAMETER...
  15. PatrickTingen

    Graph-model metaschema for progress codebase - any interest in AI driven code analysis/modernization?

    I would love to see more of this, because I am truly curious how this works and what it can do, however I don't think I could really put it to use since the client I am at now decided to move away from Progress by rebuilding the application in .Net. Yes, this tool might be of use then, but the...
  16. PatrickTingen

    Named arguments for ABL procedures.

    We use include files solely for tt definitions that need to be tossed around and we only define one temp-table per include. Exception is a dataset where the complete definition is in one include. The name of the include is always the same as the name of the include file, so we have calls like...
  17. PatrickTingen

    Scroll Bars in a window's frame (from v9.1e)

    In that case you might benefit from using the library I mentioned. My suggestion: Download the file "resizable.p" from Github (or used attached file) Place it in your codebase. Remove the code you currently have in the ON WINDOW-RESIZED event Run resizable.p in the init section of your...
  18. PatrickTingen

    Scroll Bars in a window's frame (from v9.1e)

    Progress is nasty when you are resizing. Your logic for resizing a window should take into account whether the user is enlarging or shrinking the window. I have done a lot on resizing for the application I work on, so I do have some experience here. I worked on a library that could be used for...
  19. PatrickTingen

    Right Mouse Menu Down - Anywhere | Else Event

    Ok, try this. If you right-click outside the browse, but on the frame itself (not on buttons or anything else on the frame) then the popup for the browse will appear
  20. PatrickTingen

    Named arguments for ABL procedures.

    And to add to the documentation part @Stefan posted: it suggests to use shared variables instead for more efficient code. For this the same advice applies, namely: DON'T! Shared variables are evil, just as includes with code and the release statement. They all might have their place, but as...
Back
Top