Search results

  1. F

    substituting variables

    Yes I'm aware it does not work and VALUE() will never work for this. It was just a wish. What I need is some way to make the example work. Is progress able to do this in some way?
  2. F

    substituting variables

    <shields up>Using Progress 9.1d... Is there a way to make the snippet display "hello"? I realize "value" does not work but wish it did. DEF VAR v1 AS CHAR INIT "hello" NO-UNDO. DEF VAR v2 AS CHAR INIT "v1" NO-UNDO. DISPLAY VALUE(v2).
  3. F

    selection-list programmatically select all

    Ok... I didn't see the need to trigger a value-changed event for selecting a value that is why I questioned it. Thank you!
  4. F

    selection-list programmatically select all

    Works very well! Thank you. But what is the last line required for?
  5. F

    selection-list programmatically select all

    Using Progress 9.1d, is there a way to programmatically select all list items in a selection list?
  6. F

    Can I make like temp-tables with different default field values?

    It is for temp-tables that describe html report <tr> and <td> background colors.
  7. F

    Can I make like temp-tables with different default field values?

    Ok as long as the fields needed aren't too many. Thank you.
  8. F

    Can I make like temp-tables with different default field values?

    I know. It was just a demonstration of what I wanted to do. I want to do it so temp-table test2 has a different default value for field f3.
  9. F

    Can I make like temp-tables with different default field values?

    DEFINE TEMP-TABLE test FIELD f1 AS CHAR FIELD f2 AS CHAR FIELD f3 AS CHAR INIT "A". DEFINE TEMP-TABLE test2 LIKE test FIELD f3 AS CHAR INIT "B". I want different default field values for several temp-tables. This doesn't compile but is there a way to accomplish what I am...
  10. F

    Adding work days

    BTW - When my friends from Europe take what we call vacation in the US, they say they are on holiday. Don't recall what they call a US holiday. I figured Canada followed Europe on that terminology but obviously not.
  11. F

    Adding work days

    We have a table with holidays in it. I can incorporate that as well. FUNCTION AddWorkDays RETURNS DATE (INPUT dt AS DATE, INPUT days AS INTEGER): DEF VAR i AS INTEGER INIT 1 NO-UNDO. DEF VAR returndate AS DATE NO-UNDO. returndate=dt. DO i=1 TO days: FIND FIRST holiday where...
  12. F

    Adding work days

    Here is what I came up with... FUNCTION AddWorkDays RETURNS DATE (INPUT dt AS DATE, INPUT days AS INTEGER): DEF VAR i AS INTEGER INIT 1 NO-UNDO. DEF VAR returndate AS DATE NO-UNDO. returndate=dt. DO i=1 TO days: IF weekday(dt + i)=1 OR weekday(dt + i)=7 THEN days=days +...
  13. F

    Adding work days

    Does anyone have a function made up that adds work days to a given date? For us, Saturday and Sunday are not work days. The starting date given may be a Saturday or Sunday. I am writing one but it's messy and I thought one of you genius coders may having something slick done already.
  14. F

    Looking for chr(13) with INDEX function?

    That depends on how much beer Tom can put down!
  15. F

    Looking for chr(13) with INDEX function?

    I should have tacked a smiley on! I know his intentions are well meant and he has given me tons of help.
  16. F

    Looking for chr(13) with INDEX function?

    I usually do but I didn't want Tom to throw something at me!
  17. F

    Looking for chr(13) with INDEX function?

    Thanks you! I actually just tacked on a chr(13) to the import statement and that is working. It was a quick fix.
  18. F

    Looking for chr(13) with INDEX function?

    I suppose that is from some future super-advanced version of Progress that I'm not using! ;)
  19. F

    Looking for chr(13) with INDEX function?

    Yes I am. That's what I started to guess what was happening last night. I couldn't test it till this morning though. Thanks for confirming. Is there a way to read the file exactly as it is on disk into a variable?
  20. F

    Looking for chr(13) with INDEX function?

    This is a file that I'm reading into a variable. I've looked at the file with a hex editor and the 0D's are in it. Can the chr(13)'s get lost when I read the file into variable?
Back
Top