Search results

  1. D.Cook

    Disable database CRC check?

    We've all done it: compiled a program with the local db then sent it to a client site only to receive an error because their database structure is somehow different. ** CRC for <tablename> does not match CRC in <r-code file>. Try recompiling. (1896) I don't know about every other database...
  2. D.Cook

    INPUT FROM OS-DIR only works once?

    It appears that INPUT FROM OS-DIR will only retrieve a directory's contents once in a procedure. I want to do it more! This code is called in an internal procedure (from a button click), but after the first time it is called, doesn't import anything. If the super procedure (window) is closed...
  3. D.Cook

    AVM Memory leak problem

    I have a persistent batch procedure that seems to grow in memory over time, and am having a hard time determining the cause. Generally I've always thought the AVM handled memory pretty well, and after reviewing the code I cannot find any glaring problems: Most logic is encapsulated in...
  4. D.Cook

    Get database field data-type at compile time?

    Ok this is a long shot, but any ideas on how to determine the data-type of a database field (or any variable) at compile time? For example: ADD FIELD "myfield" OF "mytable" AS integer &IF data-type(mytable.myfield) EQ "integer" &THEN intVar = mytable.myfield. &ELSE chrVar =...
  5. D.Cook

    -cpinternal parameter being ignored in Windows

    I hope I'm not going crazy, but when I try to do an index build on Windows my -cpinternal parameter is being ignored! I'm sure I've come across this in the past, but had assumed that I had too many parameters and the last few were truncated. But today I've tried a very simple thing and it's...
  6. D.Cook

    Appearing as "Not Responding" more often in Windows 7

    Windows 7 (as opposed to XP) has a different mechanism that decides how a window is not responding. When a window is deemed not responding, the words "Not Responding" are added to the titlebar, but most annoyingly, any further window paints (at least, DISPLAY or MESSAGE statements) are ignored...
  7. D.Cook

    Add shortcut for GO event

    I'm trying to figure out a generic way to add a shortcut to the GO event (in addition to F2). Specifically I'd like to use CTRL-RETURN as an easy way to submit any form in our application. My thoughts were to get a reference to the currently selected (if any) field widget (eg fill-in). So far I...
  8. D.Cook

    Manually throw an exception?

    OK it seems like a standard function, but I can't actually find a way to throw an exception! In the documentation it is an option for DO ON ERROR UNDO, THROW ... but what if I want to throw an exception based on a condition? Am I missing something?
  9. D.Cook

    Converting integer field to character field

    We are going through the process of converting an ID field to allow character values in it. So basically converting it from an integer field to a character field. Firstly, has anyone been through this before and have any tips or advice about potential less obvious problems? And secondly, Is...
  10. D.Cook

    Get info from Promon > User Control screen in ABL

    Is there a way to get the information displayed in the promon > 1. User Control > 1. Display all entries screen in an ABL session? I had a look at the system table _client-session, but it seems to be empty.
  11. D.Cook

    Special characters for IMPORT statement?

    The documentation lists hyphen (-), period (.) and null character as having a special effect in an import file. I'm wondering if there's others, and more specifically if there's a way to make a line get ignored (ie comment line)?
  12. D.Cook

    Recursive xcode

    I've recently started using the useful Progress STandard Libraries (http://www.oehive.org/project/lib), and found a need to xcode the whole thing so that I can compile on a linux server with no ABL licence. (Some files need to be compiled on the target OS). So, instead of asking if anyone has a...
  13. D.Cook

    Check is session is able to compile

    Is there any way to check if the current AVM session is able to compile and run procedure files? I ask because even if I run with NO-ERROR, the program exits when it receives error (471), even if a .r also exists.
  14. D.Cook

    Line number in protrace file

    I thought it'd be fun to try and work out what was causing protrace errors. Some of the info seems helpful, particularly the ABL stack trace. But I'm not sure how to read the line number given.. Obviously it's not the original source line number, so I tried generating a listing file (COMPILE...
  15. D.Cook

    MD4 Hash

    Any suggestions on how to do an MD4 hash in Progress (platform-independent preferably)? I'm trying to implement NTLMv2 authentication...
  16. D.Cook

    Output to Socket

    I would love to redirect the program output to an open socket object.. has anybody tried this and come up with a clever solution, or have any ideas? I have a couple hundred old programs that output to file (eq with display statement), but I'd like to output unbuffered directly to a socket (to...
  17. D.Cook

    Add/Remove Index Fields

    The data dictionary doesn't seem to offer a way to add or remove index fields, but before giving up I thought I'd ask if it is possible, whether through loading a DF or any other way. I want to do this mainly to avoid making mistakes deleting and re-creating the index.
  18. D.Cook

    INPUT THROUGH on Windows flashes a console window

    Is there any way to stop that from happening? It's really annoying, and INPUT THROUGH is much more preferable to writing/reading/deleting temporary text files. The documentation doesn't even acknowledge that the function might be used on Windows..
  19. D.Cook

    Difference between SELF and SERV database process types

    I think I've worked it out now but just want to confirm the difference between these two database process types (listed in promon user list): SELF: a process on same machine connected with -db param pointing to database file SERV: a TTY process (eg on same machine) connected with -H and -S...
  20. D.Cook

    Optimising client connection over remote network

    Our Progress client application is pretty data-intensive, and therefore network-intensive. Generally this isn't a big issue for local networks, but when clients want to deploy the application over a remote network, they sometimes run into serious performance problems. I'm talking about capable...
Top