Search results

  1. G

    Question Persistent/Super Procedures

    "Passing parameters to external procedures didn't become possible until version 5 (or maybe it was v6?) Without parameter passing you needed to use a mechanism like shared variables to pass information from one procedure to another. " That's a fun fact that I didn't know! We started in v6, and...
  2. G

    Question Persistent/Super Procedures

    Let's say you have an internal procedure called "do_calc" that you want to use in many places. Here are some ways you could go about it: 1. Redefine the entirety of do_calc in every procedure that wants to use it. This should disqualify you from ever going near a computer again. 2. You could...
  3. G

    Question Dynamic Field Handle for array fields

    fh-tt1 = bh-tt1:buffer-field("fld1"):buffer-value(x) /* where x = the array element. */
  4. G

    Should we write internal proc? Just for code readability.

    One way to look at this is that by dividing code up and using properly named variables and IP's, comments are less necessary. Eg., "RUN calculate_order_totals" vs. /* This is where we calculate order totals. */. Of course there is no guarantee that the names are accurate, but in my experience...
  5. G

    11.4 Unit Testing

    Actually, a lot! You, sir, are very helpful. Thank you.
  6. G

    11.4 Unit Testing

    I couldn't find a likely-looking PPTX other than Julian Lyndon-Smith's, which only mentions it in passing. I am guessing it's a Progress version of jUnit, which could be useful I suppose, but not really.
  7. G

    11.4 Unit Testing

    Does anybody know what this is likely to mean, from the Sept. 4 (upcoming) Webinar advertisement? ABL unit testing – giving you the ability to test code in a more AGILE development methodology
  8. G

    Question How to paste an editor in a web page

    Use an HTML <textarea> into which you can paste stuff using normal Windows clipboard functionality and then edit it as free-format text. Then you need a little JavaScript to parse the text and turn it into an array that you can pass into WebSpeed as JSON or XML, which you can easily turn it into...
  9. G

    Temp-Table

    I would probably say BY-REFERENCE is wonderful, except we have thousands of programs written before it came along, and in real life, 99% of our TT's are so small that the copying time doesn't matter. So we switch things to BY-REFERENCE as necessary in the few places where we pass around giant...
  10. G

    Question Recomendation for Inline Text Translation of Web Application

    1. We only generate it when we deploy new code. It's part of our deployment process, and it could take a while since it's parsing hundreds of JS files using code that isn't particularly efficient. 2. There isn't really any systematic control. We have to check for alignment/spacing issues...
  11. G

    Question Recomendation for Inline Text Translation of Web Application

    We have a fairly elaborate system for dealing with English vs French, but it boils down to this: 1. Everywhere a translatable string is to be shown, we use a translation function, eg. $('#my-id').html(getTranslation('My House')) 2. This function is purely a client-side operation so it's...
  12. G

    Question Stream vs tt

    "I often use a longchar where I collect the output and then use the copy-lob statement to write it to a file in one step instead of dealing with streams." Hey, that's a neat idea! I guess you are concatenating delimiters yourself? You probably have some generalized way of doing that. I wonder...
  13. G

    -s revisited

    "if it blows up for one session it will blow up for all" Sure. But at the same time? On multiple occassions? Really hard to believe.
  14. G

    -s revisited

    These agents are running thousands of different procedures in random order depending on what users want to do. They don't even service the same # of requests because some of them might take 50ms and others 10s, also, they start up at different times depending on load, also the nature of the...
  15. G

    -s revisited

    I'm familiar with the reasons for -s problems, its default values, why increasing it is often a good idea, memory leaks, problems of failure to delete dynamic objects, MEMPTR, WIDGET-POOL, etc. All that aside: can anyone explain why one might get multiple -s errors across multiple...
  16. G

    Reference vs Availability

    Read up on record and buffer scoping rules, although your use of the term 'weak scope block' suggests that you already did this. But to cut to the chase: 1) That code will compile, but it will always produce a runtime error. So when you say 'I could reference', that's only true at compile time...
  17. G

    How to delete / archive legacy system data on Progress db

    'I know that Progress database maintains referential integrity programmatically.' This is news to me - certainly not in v9 and AFAIK not in any versions. Unless perhaps by 'referential integrity' you mean that Progress guarantees that index entries are valid. But I take it to mean that foreign...
  18. G

    Find string entry in another string list

    Just out of curiosity ... are Progress word indices updated real-time, same as regular indices? You'd think that would be a given ... but I ask because back in my MS-SQL days, this was not true ... they had word indices but they had to be loaded independent of regular INSERT operations, and...
  19. G

    Find string entry in another string list

    1) Your post implies that you're going to read 100% of the relevant DB records no matter what due to "other obscure search requirements", and that may be OK if you know the # of records involved will always be reasonable compared to the time available to process the query. If this is the case...
  20. G

    Code Beautifier for Progress 4GL

    Whoa. Whoa. WHOA! It's one thing to berate trivial details like version 9, .I's, DEF SHARED, GOTO (if only...), arrays, RAID 5, non-backups, non-source control, FIND FIRST, CAN-DO, dictionary validation, and USE-INDEX ... But something truly important, like capitalization??!? That's a low blow ;)
Back
Top