Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Dave Snyder — — source: Informix-list mailing list archive (1991-1998)
Quoting Ed Gulczynski...
}
} In 4gl I'm trying to calc. the number of days between 2 dates
} Here's what I've done. This doesn't work at all????
} I'd appreciate it if you could send me some working code that would
} yield p_diff as a valid integer value.
}
} .
} .
} GLOBALS
} p_diff INTEGER
} END GLOBALS
} .
} .
}
} LET p_diff = TODAY - 60 UNITS DAY
} DISPLAY "diff=",
} p_diff
}
You are making things harder than they need to be... to calculate say,
the number of days since an invoice was cut, do this:
GLOBALS
DEFINE p_diff INTEGER
DEFINE invoice_date DATE
END GLOBALS
LET p_diff = TODAY - invoice_date
DAS
--
David Snyder @ Snide Computer Services - Folcroft, PA Current Release
is db4glgen-3.9
UUCP: ..!uunet!das13!dave INTERNET: dave.snyder@snide.com
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.