Evertjan, et al.,
Although it's likely that in some cases things will just "work", there are many cases where things may not work. For instance, if you're using other than our MS SQL driver, you...
Type: Posts; User: flxkid
Evertjan, et al.,
Although it's likely that in some cases things will just "work", there are many cases where things may not work. For instance, if you're using other than our MS SQL driver, you...
Joseph,
Came across this post somewhat randomly today. Don't know if this has gone anywhere, but probably what is being done internally is actually correct. A decimal in Dataflex is a fixed point...
When I click Do Not Configure IIS checkbox, I get a dialog box with a yes/no, and no matter what I answer I can't go past that. Also the text is cut off.
OLIVER
...
Where this is done in other languages, in general the struct get's a pointer that is used to break the self-references and/or recursive references. So in your example you'd have something along the...
Hadn't thought of that. Interesting workaround. Lets hope we get a real fix though :-)
OLIVER
Most have seen the posts already about the problem with global variable initialization problems. But there are also problems with local variable initialization as well. I've reported this already, so...
Derek,
Attached is a replacement GlobalDateTimeFunctions.pkg that you can use (I've named it FixedGlobalDateTimeFunctions.pkg, but you can rename it and overwrite the one in the packages folder...
The Integer function has this documentation: "Real and number values are converted to integer values by truncation of the decimal portion of the value". Mostly this is true, but not entirely true....
Frank,
Don't worry about it, I've written my own for now. But it really is a pain!
OLIVER
Frank,
I'd considered something similar, but then you have to deal with another bug. Since your code uses a timespan, you're limited to math of less than about 181yrs since timespans have a...
Frank,
Yeah, that would certainly work, but as you stated, an official fix is better than runtime patching. As you've proven though, the fix is trivial...
OLIVER
Frank,
I'm sure there are some controls that do that, but a good testing framework would catch that early on and the developer would fix it. It's a well known limitation and most developers that...
Harm,
How about we look at a more harmful twist on this issue. Let's say you're getting back reporting data via a COM control and you're going through transactions and you want all of them before...
For even MORE fun try out this code:
Procedure TestOldDate
DateTime dtOld
Variant vOldDate
DateTime dtOther
Get DateTimeSet 1899 12 30 0 0 0 0 to dtOld
Move dtOld to vOldDate
Harm,
For an additional fun time give these two bits of code a whirl:
Get DateTimeSet 0001 01 01 0 0 0 0 to dtOld
move dtOld to someVariant
I was hoping the variant would contain...
Harm,
A VT_DATE for sure supports milliseconds. Internally an OADate is simply a Double (VT_R8). This issue with SystemTimeToVariantTime has been around for a LONG time with a solution. Although...
This has been reported on elsewhere, but I can't find anything that says it's logged as a bug:
If you do this:
Datetime dt
Get DateTimeSet 1899 12 30 0 0 0 0 to dt
showln (DateAddDay(dt,...
It's been over three years since this bug was reported, it's no doubt latently sitting there in many peoples code and still not fixed. Code can describe it better than I can:
Procedure TestDTBug...
Samuel,
I think it's related to getting the address of certain global_variables. I've had a similar problem doing an AddressOf on a global variant.
OLIVER
A better way to think about it is to view the BOM as metadata. You don't read in metadata when you're reading the data. It's a separate interface to read the metadata so that it doesn't interfere...
Wil,
This doesn't make the file ANSI at all...you can read UTF-8 without a BOM all day and it works just fine. The BOM is simply an indicator. DF reads a file without a BOM as UTF-8 without any...
Wil,
Good to see you too. What I was trying to get at is that it because code often does things like "read x characters (or first line, etc) from file" to see something about it, and this BOM is...
I was kinda hoping that doing a standard readln would skip the BOM since it's just an indicator of the format to follow. But it seems the BOM is read by readln. I can see READ_BLOCK as an interface...
Bob,
PostgreSQL can do this with a DO block. The problem is that the return value of DO blocks is discarded. If you need to actually return something but don't want to make a function you can use...
Pepe,
It doesn't have to fall under the same restrictions. MariaDB is still GPLv2 (a license with high virality). So if your software packages a MariaDB server with it, then you'd need a...