Search results

  1. PatrickTingen

    Advent of Code 2025

    Also posted this on the Progress Discord server, so perhaps you already read it... Do you like coding? And a little challenge? And a little fun? If three times a yes, then Advent of Code is something for you. What is it In their own words: "Advent of Code is an Advent calendar of small...
  2. PatrickTingen

    Primary Unique DB Records

    But wait, there is another possibility. Perhaps even dirtier than the previous. If the field ShippingMethod is not mandatory (check it in that wonderful tool DataDigger :cool:), you could assign it the unknown value. Progress allows duplicate records when one or more of the fields in a unique...
  3. PatrickTingen

    Primary Unique DB Records

    No. This is impossible with your current index. Your index dictates that the combination of ShippingMethod and ConsignmentNumber must be unique. You state that the ShippingMethod is left blank in all cases, so that basically sets you back to the ConsignmentNumber to be the only unique value...
  4. PatrickTingen

    Spam

    A lot of the spam seems to come from user "Gacor", can't you just kick him/her out?
  5. PatrickTingen

    Primary Unique DB Records

    According to your screenshot there is only one unique index on your table, consisting of two fields: ShippingMethod and ConsignmentNumber. Yet, your FIND FIRST searches for a record with 3 fields: ArEntity, OrderNumber and ConsignmentNumber. There is your problem. Your unique index consists of...
  6. 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
  7. 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?
  8. 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...
  9. 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
  10. 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...
  11. PatrickTingen

    How to get position in scrollable frame

    Dang, pixel perfect and perhaps even easier than calculating using the mouse coordinates
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Back
Top