Simpler Datenum
#2
Nice!

This is another reason I love QB64 no-limits memory (system limits). Back in the QJUrassic days, we had to optimize code like crazy to get it work on large apps. For instance, I would have needed to change the way datenum$ is calculated by losing the SELECT CASE and doing something very obfuscated, like this....

datenum$ = _TRIM$(STR$(VAL(MID$("000031060091121152182213244274305335", VAL(month$) * 3 - 2, 3)) + VAL(day$)))
datenum$ = MID$("00", LEN(datenum$)) + datenum$ ' Three digit formatting.

Pete
Reply


Messages In This Thread
Simpler Datenum - by doppler - 05-04-2022, 04:43 PM
RE: Simpler Datenum - by Pete - 05-04-2022, 05:38 PM
RE: Simpler Datenum - by Pete - 05-04-2022, 07:10 PM
RE: Simpler Datenum - by dcromley - 05-05-2022, 04:49 AM
RE: Simpler Datenum - by Pete - 05-05-2022, 05:35 AM
RE: Simpler Datenum - by doppler - 05-05-2022, 02:10 PM
RE: Simpler Datenum - by Pete - 05-05-2022, 02:22 PM
RE: Simpler Datenum - by euklides - 05-07-2022, 07:59 AM
RE: Simpler Datenum - by doppler - 05-07-2022, 01:27 PM
RE: Simpler Datenum - by euklides - 05-08-2022, 11:59 AM



Users browsing this thread: 5 Guest(s)