Search results

  1. D.Cook

    To get the info of particulat field, or fillin, or combo etc.

    If the former, check out the following keywords in the ABL reference: frame-db frame-field frame-file But directly accessing the fill-in widget is a safer option. Check out the ABL reference for the fill-in widget to see a list of all attributes available to you. Note the NAME attribute will...
  2. D.Cook

    Run program as a service

    I've been wanting to do this as a low priority for a while now.. On UNIX I just append an '&' to the end of the command and this executes it in the background. Windows supposedly has an equivalent using 'start /b' but this doesn't actually work. So to actually run as a service, check out this...
  3. D.Cook

    Simple question on assignment

    Not exactly. See this thread: http://www.progresstalk.com/showthread.php?116435-Bug-in-Progress&p=356157#post356157
  4. D.Cook

    SQL MAX() equivalent in ABL?

    Thanks for the suggestion Cecil. I came up with this, which will put the value into a variable. def var iMax as int. for each customer fields(paid): accumulate customer.paid (maximum). end. iMax = (accum maximum customer.paid). But for this case I ended up with an index on the...
  5. D.Cook

    SQL MAX() equivalent in ABL?

    I think I've had to solve this problem in the past but can't remember how... If you're familiar with SQL, you'll know you can do something like SELECT MAX(a_column) FROM a_table, which will find the highest value of a numerical column in the table. Is there a quick way to do this in ABL, or do...
  6. D.Cook

    URGENT QUESTION on query/browse

    See the chapter "Using the Browse" in the ABL handbook for a guide with sample code. The browse-enable-phrase of the define browse statement is probably what you need.
  7. D.Cook

    How to use Progress to develop program as background jobs like MSN style ??

    Or maybe you just want a tool like this, which allows you to minimise any program to the system tray. http://www.actualtools.com/titlebuttons/minimize_to_system_tray_any_program.shtml
  8. D.Cook

    How to use Progress to develop program as background jobs like MSN style ??

    (referring to the original post) I did this once. I created a .NET "Agent" app which simply put the icon in the notification area and had a right-click menu. When you clicked on a menu-item (or double-clicked the icon), it would send messages to the ABL program, eg Show/Hide or run a procedure...
  9. D.Cook

    Queries and Browser

    That's a shame, but I'm not surprised that loading 200 000 records into a browse takes that long. I've recently been dealing with similar speed problems, and found the best way was to add a filter with easy to use controls so the user can quickly filter down to what they're looking for.
  10. D.Cook

    Queries and Browser

    Hi there. I might be missing something, but my interpretation of your CHUI code means that the Emplr-status row seq #4 would be shown, not #5. #4 is the last record that matches both the date condition and the status condition. (Assuming the default index on Emplr-status includes the date...
  11. D.Cook

    4gl and MS WORD

    I don't know how you would achieve that, but probably the best way to do it is to write code in VBA to do this, then once you have it working convert your code to ABL Com-Handle style to achieve it via ActiveX A good reference to all the objects available to you in Word will be in the VBA help...
  12. D.Cook

    Bug in Progress?

    Wow I've been using Progress for a while now and had no idea about that.. I'm glad I know now. It's one of those 'shortcut' features of the ABL you have to be careful with, like string comparisons being case-insensitive (by default).
  13. D.Cook

    How to protect applications in Progress

    Your second option might be a good solution. Maybe instead of keeping this encoded information in a file, you could store it in the database. This might make management of the whole thing a bit easier. If you have a yearly licence or something like that, you could build a date into the encoded...
  14. D.Cook

    Can we use TAB as a delimiter while exporting?

    I find the shortcut '~t' much easier to remember. Also handy is '~n' for new line.
  15. D.Cook

    Get current usage of extents

    Thanks guys
  16. D.Cook

    Get current usage of extents

    Is there a way to work out how much a data extent file is being used? For example I want to know what percentage is used in database.d1 so I can add a new fixed extent before it fills up and the variable overflow extent gets used. I'm sure I figured this out once, maybe using data from the...
  17. D.Cook

    Pro*Spy Plus

    Ahh good old Pro Tools.. thanks Tony
  18. D.Cook

    Check if in single-user mode

    Without a relevant session attribute I was struggling to find a way to detect if the session was in single-user mode. Took me a while to realise a fairly simple solution so I though I'd share: CAN-DO(DBPARAM(1), '-1')
  19. D.Cook

    Pro*Spy Plus

    I've found a couple of references to this tool but can't seem find it in the DLC or a download.. any clues?
  20. D.Cook

    Programmatically disable an index

    Especially considering an enhancement request was logged in 2004.. P74611
Back
Top