Recent content by sphipp

  1. S

    Excel Macros Disappear

    What I normally do is to have a blank Excel Spreadsheet that contains all the macros that I need, then I copy that to my new name, open the new spreadsheet, make the changes and save it. That way, I don't have to worry about messing about with macros. Do you have macros that are particular to...
  2. S

    Status Bar Text and Incomplete Answers

    It's always easier to understand a question if it is split into several smaller posts, each asking one thing, rather than one long post asking a lot of things. Browses in Progress are good for displaying and choosing information but that's about it, in my opinion. If you want to do some work...
  3. S

    Urgent

    Is lp extension/context-aware? I didn't think it was, at least I have gone through a ream of paper by using it in the past.
  4. S

    Urgent

    That's quite tricky under Unix, at least I think it is. Finding the files in a directory is fairly easy - OS-DIR gives you the list of files, you can import them into a Temp-Table and then process each one individually. However, printing each file is the difficult part. Under Windows you...
  5. S

    check for open internet explorer window

    Change IF istaskrunning (INPUT pi_cProgram,INPUT pi_cTitle, OUTPUT ProcessID) THEN DO: RUN OpenProcess ({&PROCESS_TERMINATE}, 0, INT (ProcessId), OUTPUT ProcessHandle). IF ProcessHandle NE 0 THEN DO: RUN TerminateProcess (ProcessHandle, 0, OUTPUT ReturnValue). RUN...
  6. S

    Equivalent of a SQL subquery in 4GL ?

    for each SupportCall where SupportCall.AssignedTo = 'fred' no-lock: /* Do something */ end. To amend the records use exclusive-lock
  7. S

    Calling Program

    message program-name (2) view-as alert-box.
  8. S

    check for open internet explorer window

    Using some code from OEHive http://www.oehive.org/node/513: &GLOB PROCESS_TERMINATE 1 PROCEDURE OpenProcess EXTERNAL "kernel32" : DEFINE INPUT PARAMETER dwDesiredAccess AS LONG. DEFINE INPUT PARAMETER bInheritHandle AS LONG. DEFINE INPUT PARAMETER dwProcessId AS LONG...
  9. S

    check for open internet explorer window

    If you have a play with tasklist then you can extract the title of the web page that is running. FUNCTION IsTaskRunning RETURNS LOGICAL (pi_cTask AS CHARACTER, pi_cTitle AS CHARACTER): DEFINE VARIABLE cline AS CHARACTER NO-UNDO EXTENT 20. DEFINE VARIABLE lRunning AS LOGICAL NO-UNDO...
  10. S

    check for open internet explorer window

    Try: FUNCTION TaskIsRunning RETURNS LOGICAL (pi_cTask AS CHARACTER): DEFINE VARIABLE cline AS CHARACTER NO-UNDO. DEFINE VARIABLE lTaskFound AS LOGICAL NO-UNDO. ASSIGN pi_ctask = TRIM (pi_ctask). INPUT THROUGH VALUE ('tasklist') NO-ECHO. REPEAT: IMPORT cline NO-ERROR. IF...
  11. S

    Resizing Dialog-Frame

    Try DEFINE VARIABLE cTest AS CHARACTER NO-UNDO. DEFINE VARIABLE hfrmain AS HANDLE NO-UNDO. DEFINE VARIABLE htest AS HANDLE NO-UNDO. DEFINE VARIABLE hBtnOK AS HANDLE NO-UNDO. DEFINE BUTTON btnOK LABEL "OK". DEFINE FRAME frmain ctest VIEW-AS EDITOR SIZE 50 BY 5 AT ROW 1...
  12. S

    Dynamic window frame

    Try something like this: DEFINE VARIABLE cTest AS CHARACTER NO-UNDO. DEFINE VARIABLE hfrmain AS HANDLE NO-UNDO. DEFINE VARIABLE htest AS HANDLE NO-UNDO. DEFINE VARIABLE hBtnOK AS HANDLE NO-UNDO. DEFINE BUTTON btnOK LABEL "OK". DEFINE FRAME frmain ctest VIEW-AS EDITOR...
  13. S

    Pre Processor

    Thanks - that's what I thought I had typed and that's what I was sure I had typed, but the code imps muddled it up for me.
  14. S

    Pre Processor

    DISPLAY "~{". or DISPLAY CHR(123).
  15. S

    Error occurred while accessing component property/method: <property or method name>"

    Re: Error occurred while accessing component property/method: <property or method nam What this means is that you have an invalid COM handle. Normally, you get this by trying to refer to a COM handle that you haven't yet created. So, if you want to create a Chart in Excel but don't create...
Top