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?
<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).
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...
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.
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...
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 +...
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.
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?
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.