Search results

  1. Smud

    Bad code

    well "meaningful" comments would also be helpful - we have all seen the; /* add 1 to x */ ASSIGN X = X + 1. but your point is .... poignant
  2. Smud

    On leave of field

    Thanks Tom, at least I know not to pursue it further.
  3. Smud

    On leave of field

    re GUI development (I'm working in a viewer client side); I have a "need" to do some processing on leave of a field - on change I'm setting a flag then using "on mouse-click anywhere" and "on cursor-up etc" but problem is the mouse-click gets eaten up and does not activate as before (lucky...
  4. Smud

    DOS command hangs processing etc

    I had the same problem with "no-wait", and "no-console".
  5. Smud

    DOS command hangs processing etc

    Had the problem where the DOS command causes Openedge to wait till process has finished etc and could not see a decent resolution in any of the forums, so the difference between; DOS SILENT notepad c:\temp\text. and OS-COMMAND SILENT ("start /B notepad.exe c:\temp\text.txt"). is the...
  6. Smud

    A"maze"ing fun

    Thanks to these guys - http://people.uncw.edu/tagliarinig/Courses/380/F2017%20papers%20and%20presentations/The%20Amazing%20Maze--Lawrence,%20Neill,%20and%20Nobles/The%20Amazing%20Maze(1).pdf was able to decipher an interpretation of the sidewinder algorithm; /*...
  7. Smud

    Question Best way to learn a new Database and Application

    Difficult problem, and usually in these systems fields change in meaning without the name being changed. Example; StockOnHand is now really "paid stock on hand" as a new field was added for DeliveredNotInvoiced and later a field for IssuesAccrued where issues are made before the stock is paid...
  8. Smud

    Call me "Silly"

    Was playing around running tty type unix code in windows just using the _progres.exe file with a few minor code changes it all works fine (compile on the fly) but I could not find the settings to change the screen size rows and columns ie 25 rows and 80 column type terminal. Even read some...
  9. Smud

    Count Records in each table of a Database

    slightly restructured, its not too bad for speed; CREATE WIDGET-POOL. DEF VAR h_predicate AS CHAR NO-UNDO. DEF VAR h_qry AS HANDLE NO-UNDO. DEF VAR h_buffer AS HANDLE NO-UNDO. /* predicate with working database */ FOR EACH _file NO-LOCK: if _file._file-name begins "_"...
  10. Smud

    Count Records in each table of a Database

    Yep that works! I have a few large conversions to run over the next few months and it will help knowing how many rows I'm dealing with etc. I'll try the proutil suggestion next week as well - thanks Rob - that will help in planning.
  11. Smud

    Count Records in each table of a Database

    Saw this question recently, this is better than "for each ...: i = i + 1. end. display i." type of code; CREATE WIDGET-POOL. DEF VAR h_predicate AS CHAR NO-UNDO. DEF VAR h_qry AS HANDLE NO-UNDO. DEF VAR h_buffer AS HANDLE NO-UNDO. FOR EACH _file NO-LOCK: if...
  12. Smud

    While Debugging old Code ....

    If you try something like this in the Dojo (this is for demonstration only, not serious code); FIND Order Where ordernum = 100 no-error. IF AVAILABLE(Order) THEN DO: /* then do lots of processing .... before */ FOR EACH Orderline OF Order: DISPLAY ordernum Linenum Itemnum Price Qty...
  13. Smud

    Soundex

    Thanks - will do - easy change - initialise nlast to -1 rather than "nLast = SoundexCode(INPUT cSoundex)."
  14. Smud

    Soundex

    Some algorithms treat the first character as non-repeatable eg LLOYD can be either "L300" or "L430" - I would think "L300" is more right. Who would think anything on the web is wrong?
  15. Smud

    Soundex

    search is down for some reason .... anyway, does this soundex code look about right? Longtime since I used Soundex, think it was payroll surname lookup (cobol code).
  16. Smud

    Comment How To Add Malicious Code To Your Programs, Abl Ackermann's Function

    Dojo is pretty quick as well, like it! Seems to have improved since I last tried it.
  17. Smud

    Comment How To Add Malicious Code To Your Programs, Abl Ackermann's Function

    Thanks for the edit - I'll remember next time ta ;-)
  18. Smud

    Comment How To Add Malicious Code To Your Programs, Abl Ackermann's Function

    lol Believe I would have more chance of calculating pi !!
  19. Smud

    Comment How To Add Malicious Code To Your Programs, Abl Ackermann's Function

    Been itching to have a go at a non-recursive version of this function but not had the time till now. Could not find a version that was either "right" or one I could understand but this article gives you enough hints on how its done...
  20. Smud

    Comment How To Add Malicious Code To Your Programs, Abl Ackermann's Function

    yep you will need some serious stack space to go beyond 1 TO 3 (and helps if you get the syntax right ;-) function ack RETURNS INT64 (INPUT m as int64,INPUT n as int64): define variable answer as int64 no-undo. case true...
Back
Top