Search results

  1. K

    Resolved How to cancel a form close event ?

    I was hoping "return no-apply." would do this, but it does not. Included some sample code. Openedge version 11.7.2. Edit: never mind, in ooabl you do this with "e:Cancel = true." in the event handler.
  2. K

    Progress swag of years gone by.

    This is certainly not all. Also got the t-shirt, the hat, and yet more toys and gadgets.
  3. K

    Using delimiter while creating excel sheet in progress 4gl

    Checking the documentation on the Open method that you use in your code (Workbooks.Open Method (Excel)), it does mention an optional parameter to specify the delimiter used in the file to open.
  4. K

    Temp-table Scope Clarification

    By default temp-tables are passed by-value, which means that the external procedure receives a copy of the temp-table. Emptying the copy does not impact the original. You can change this by adding 'by-reference' in the run statement. This will make the external procedure use the original temp-table.
  5. K

    Error Problem With Getclass() Function

    define output parameter ocx as character no-undo. define variable className as Progress.Lang.Class no-undo. ocx = "FAIL". className = Progress.Lang.Class:GetClass("class.does.not.exist") no-error. if valid-object(className) then ocx = "OK". else ocx = "notValid". When i run this code locally...
  6. K

    Problem In Reading A Text File

    ok, thanks
  7. K

    Problem In Reading A Text File

    Suppose I am using this code to read a text file : DEFINE VARIABLE inputLine AS CHARACTER NO-UNDO. DEFINE STREAM sin. input stream sin from T:/demo.txt. repeat: import stream sin unformatted inputLine. ... end. input stream sin close. Suppose the text file contains some text like ...
  8. K

    Lock Table Overflow, Increase -l On Server (915)

    You will need to look at your transaction scoping in your program. Creating the summary should maybe not be one single transaction. You may also try the -NL startup parameter in case the queries in your program do not all explicitely use the no-lock option.
  9. K

    Question Progress Code To Retrieve Appserver Name

    What about using os-getenv ("HOSTNAME") ? really ? o_O
  10. K

    The Wall Of Shame

    The intention of this code is that you then can do find next in a loop and the first find next will give you the first record. Without the find prev you will skip the first record.
  11. K

    How To Convert Base64 Encoding To Ascii Text?

    As far as i know all content that is base64 encoded already is ascii text. That is the reason for using base64 encoding.
  12. K

    Question Application Compiler Won't Open

    Verify that the application compiler is in your propath: message search("_comp.r"). pause.
  13. K

    Craziest Progressism?

    That was 63kb
  14. K

    Waiting For Progress App From Java

    Or maybe just use mpro in stead of mbpro ?
  15. K

    Question Finding, Where This Table Is Created?

    Don't forget .cls files if you have any ;)
  16. K

    Question How To Avoid Non-printable Chars During Write-xml

    There probably are better solutions, but you could output the write-xml to a longchar variable and do the substitutions on the longchar before you write it to the actual file ?
  17. K

    Progress Nostalgia

    Yes probably from 2008 or 2009 or something
  18. K

    Progress Nostalgia

    Speaking of old promotion paraphernalia, anyone recognise this ?
  19. K

    Using The To-rowid Function

    Yes i should have mentioned this explicitely: if you replace longchar with character the example is working as expected.
  20. K

    Using The To-rowid Function

    Do you think this code should raise a compilation error ? Currently you can compile it but it will not work when you run it. (Openedge 11.4) define variable cdemo as longchar no-undo. define variable rdemo as rowid no-undo. cdemo = "xx,0x00000000000048e7". /* random rowid */ rdemo = to-rowid...
Back
Top