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...
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!
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...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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.
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...
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 =...
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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.