Search results

  1. W

    Question Class use statistics

    Good afternoon progress people! So I know that progress has run statistics for procedures via -y startup parameter. Is there anything like this for classes? Thanks!
  2. W

    Answered Dynamically adding labels and fields to appbuilder screen

    Good afternoon all! I am currently working with an older .w appbuilder screen and have been tasked with adding labels and fields to this screen based on values in a table. Essentially the table contains a label and a format. There is more information but it isn't pertinent to the question. So I...
  3. W

    Question ABL Unit Database connection

    Good afternoon, So I've recently discovered the ABLUnit and trying to build some tests. I am trying to load a database table but I keep getting an error when running using the ABL Unit Application. The error is unknown database name xx. (855). Now I have also tried running the test class via a...
  4. W

    Question Pulling table data into a class

    Ok, so this may be a dumb question but for whatever reason I can not seem to wrap my brain around how to do what I want to do. So what I'd like to do is take some set of data from database tables, multiple records, and then store them into a class for use later. My first thought was to simply...
  5. W

    Question Characters missing

    So I have an odd question. I have simple text widget as a decimal. When I change the widget to be SENSITIVE=NO the numbers move to the right ever so slightly and it cuts off the end of the number. DEFINE VARIABLE txtNumber AS DECIMAL FORMAT " zzzzzzzzzzzzzzzz9":U INITIAL 0 VIEW-AS FILL-IN...
  6. W

    Question Invalid cast

    Ok I am trying to avoid getting casting errors but so far I have not found a way to test a type cast. Does anyone here know of a way to test a type cast?
  7. W

    Answered Valid Stream

    Good afternoon fellow Progress Programmers: I have stumbled in to a situation where I would like to check the status of or validity of a defined stream. There are cases where the stream is getting used but has already been closed. Basically I would like to do something similar to...
  8. W

    Question Simple UI question

    Ok so with progress questions Google always seems to fail me, and since I dont have the exact terminology it makes it difficult to search the progress help. Basically what I need to do is on a very simply UI form I want to have the enter key not press the OK button unless it has the focus. All...
  9. W

    Question ESC key in frame

    Trying to find a way to catch the esc key in a frame defined as a dialog-box. Thus far my efforts have either done nothing, or closed the entire application rather than just the immediate dialog box. I have tried 'ON ESC OF FRAME Dialog-Frame', 'ON ENDKEY OF FRAME Dialog-Frame', and 'ON...
  10. W

    Question Profiler

    Ok, so I have searched the forum, the internet and found little to nothing to answer my question. I am trying to get a profiler output from a program but I am getting nothing. I am using progress 11.2 on an AIX environment. I added code similar to the following in my program I want to profile...
  11. W

    Question Wildcard search

    Ok I tried quickly searching and didn't find anything so figured I would post. Here is my question, is there anyway to search for an OS file using wildcards? Essetially I have enough information to uniqely identify a file but not enough to have the full file name. Thanks in advance for any...
  12. W

    Answered compare lists

    I have a dumb question. But does anyone no of a better way to compare two delimited lists other than 'manually' looping through each of them to determine additions and deletions?
  13. W

    leave/exit a 'for each' loop

    I have the following scenario: I have a main table that connects to a secondary table with several fields with 10 extents each. I would like to go code the following: main-blk: for each tMain: sec-blk: for each tSec: do l-idx = 1 to 10: if some criteria then do...
  14. W

    Force procopy

    Just wondering if there is a way to force procopy to copy a database and overwrite the destination if it exists? Looking at creating a script where I will be copying databases and would like to avoid having to have the user say yes to overwriting the database each time it shows up. Also not sure...
  15. W

    last iteration

    How can I tell if I am in the last iteration of a for each loop? I know that last-of() will hit everytime it is the last record of a break group but I only want to know when it is the last record of the for each loop. Seems simple enough but I can not seem to find anything that would do this...
  16. W

    efficiently remove spaces

    So I have a question on efficiency and don't have a good way to test it. Which of the below code segments would most efficiently replace multiple spaces with a single space? l-txt = TRIM(l-txt). DO WHILE l-txt MATCHES "* *": l-txt = REPLACE(l-txt, " ", " "). END. OR l-txt =...
  17. W

    Julian dates

    Does anyone know of a built in way to handle dates in a julian format?
  18. W

    exists

    I am wondering if there is a simple way, in a preprocessor directive, to tell if a specific table exists or not. Does anyone here have any ideas. Below is my initial thought. &IF CAN-FIND(_file where _file._file-name = "xxx") &THEN /* insert code here */ &ENDIF
  19. W

    creating tables using preprocessor names

    Hopefully I can explain this well enough to get the answer I am looking for. What I am trying to do is create an include file to be able to create a table dynamically. I have a set of tables where they all have the same fields. The only difference from one table to the next is the data type of...
  20. W

    calling a function from inside another fucntion

    First is this allowed?? I currently have two functions defined with one using the other, and I get the following error: ** Unable to understand after --".......". (247) ** include.i Could not understand line xxx. (198) Here would be a simple example: function fun-1 returns date( input...
Top