Search results

  1. D.Cook

    Turning Color Coding (Syntax-Highlighting) back on in OE10.1A

    Sucks for those of us without a Studio license :(
  2. D.Cook

    CRLF Line terminator equivalent in Progress 4GL

    Note that "~n" evaluates to just a linefeed character; carriage return is "~r" Also CHR(13) evaluates to just a carriage return; linefeed is CHR(10). (http://www.asciitable.com/) SKIP is OS-dependant so on Windows will output CRLF and on Unix just LF. So CRLF, as the question was posed, is...
  3. D.Cook

    Access database dynamically, when db was not connected at compile-time

    Thanks guys, seems I didn't read the doc properly and didn't realise table-name can be a character expression. Now I'm past that hurdle I can compile my procedure independent of being connected to any database!
  4. D.Cook

    Access database dynamically, when db was not connected at compile-time

    Is it possible to compile a procedure without any reference to a database, then at run-time dynamically access a database? I thought about creating a dynamic query, but even that needs a buffer set before I can run the query. As far as I can tell, I can't define a buffer without referring to a...
  5. D.Cook

    Messages cause "Press space bar to continue." in TTY mode

    Thanks guys, PAUSE 0 BEFORE-HIDE does the trick.
  6. D.Cook

    Messages cause "Press space bar to continue." in TTY mode

    I was expecting an easy way to prevent pausing every time the MESSAGE-AREA fills up in character mode. I just want to keep outputting messages to the user without the process being interrupted. I tried PAUSE 0 after each MESSAGE statement, and HIDE MESSAGE before each MESSAGE statement, no luck...
  7. D.Cook

    Ignore '-param' startup parameter in Procedure Editor

    I have a need to pass parameters in the command line to the session, and have found the -param startup parameter quite useful for this in the past. However if the shortcut results in opening the Procedure Editor (which I then use to run some program code), the Procedure Editor picks up the...
  8. D.Cook

    Browse horizontal scroll bar

    I haven't experienced this specifically before, but once came across a different bug with the browse. I found a work around by programmatically resizing the first column -1 pixel then +1 pixel, which caused the browse to re-display correctly. Maybe that will fix this issue too. You could contact...
  9. D.Cook

    Empty a database table with no indexes

    I have been using ABL too long when I no longer recognise SQL statements! Sometimes I don't think before I click. I've not come across the -i parameter before -- thanks for the tip.
  10. D.Cook

    Empty a database table with no indexes

    I haven't seen that one before, interestingly it's not in the ABL reference. But, just like any other method of accessing records it requires a built index on the table :( Unfortunately I've come upon this situation again today, however I think I have made a breakthrough! I deleted the table...
  11. D.Cook

    Empty a database table with no indexes

    If only it was up to me! And if only this database wasn't 30gb...
  12. D.Cook

    Empty a database table with no indexes

    I'm not sure if this is possible, but I'm hoping there might be a way to empty a database table which does not have indexes built? The reason I want to do this is because a data load was cancelled, so I want to clear this particular table and start loading from that table onwards. I'm using...
  13. D.Cook

    dcolor in character interface

    You can view the colour table from the Procedure Editor by clicking Tools>PRO*Tools then clicking on the left-most icon. These colours can be changed to be a bit more eye-friendly; the values will be saved in the ini file. (Although I'm not sure what colour palettes would be supported by your...
  14. D.Cook

    Size of Progress application window.

    Unfortunately window and all other element sizes are by default calculated at compile time, which means achieving what you want to do could be very hard. Have you tried compiling the programs in the 'Large Size' mode? If that works, maybe you could keep two copies of your r-code: one compiled...
  15. D.Cook

    Message view-as alert-box skipping user input

    No. You may be able to achieve what you want by displaying your message on a frame and using the PAUSE statement. The PAUSE statement will pause for a certain amount of time, but the user can press space-bar to continue. In addition, you could use the VIEW-AS phrase to make the frame a dialog...
  16. D.Cook

    socket: CONNECT() long response time

    I haven't done socket stuff for a little while, but I'm pretty sure this worked: hr_socket:set-socket-option('SO-RCVTIMEO', '3'). /*timeout after 3 seconds*/ Hmm further research tells me this still requires blocking sockets.. I can't event remember the difference but it's worth a try.
  17. D.Cook

    MAX-CHARS is actually max bytes

    I just thought I'd warn you. You're probably thinking "So what, I live in the western world where we only have single-byte characters anyway". WRONG! The windows line-break is two bytes, so don't expect to be able to enter 10 line-breaks in an editor with MAX-CHARS of 10. You'll only get 5...
  18. D.Cook

    Ques on usage of ?

    I never thought of that method Tom, nice one. In the past I've just wrapped the potentially undefined string in a basic user defined function like this: function str returns char (vp_input as char): if vp_input eq ? then return "?". else return vp_input. end. somevar =...
  19. D.Cook

    Looking for chr(13) with INDEX function?

    Maybe try the ASC function on the newline character in your string to find out what the ASCII value became. What OS? Perhaps Progress is performing a conversion. What method are you using to read the string? I didn't realise there was a method to read multiple lines into one string variable.
  20. D.Cook

    URL Encode function in ABL

    I need to encode a string to make it valid for a URL. Before I write a hundred REPLACE statements, does anyone have a sample function, or a better way? Basically I want to replicate the behaviour of PHP's urlencode
Back
Top