Hi,
I have a routine that takes a data value, and then tries to determine what data type should be used when interfacing with other products (Excel in this case). The process I use is to (a) see if it is a number; then (b) ICONV the data value with various masks to see what is recognised. When I came to test standard QM format masks, I found that these got recognised as TIME values ... which I found surprising.
For example:
ICONV('8R', 'MT') returns 28800 (8 hours)
ICONV('8L', 'MT') returns 28800
ICONV('8C', 'MT') returns 28800
ICONV('12*R', 'MT') returns 43200 (12 hours)
ICONV('12*R26', 'MT') returns 43226 (12 hours and 26 seconds)
I question whether these are sensible return values for a time conversion. I could understand '8H' being returned as 28800, but not '8R', '8L', or '8C', and certainly not something like '12*R26'. i don't look at any of those values and think - that is a TIME value!
Can someone from Rocket comment on this?
QM 4.0.9 / Windows. Testing on QM 4.0.7 / Windows gives the same answers.
Brian
------------------------------
Brian Speirs
Senior Analyst - Information Systems
Rush Flat Ltd
Wellington NZ
------------------------------
