Re: The fate of EuCOM with gotos....
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Nov 09, 2004
- 480 views
Jonas Temple wrote: > > I'm getting the values from an IBM AS/400 running DB2. The numeric values > I'm getting are defined as a fixed number of decimals (15,5) which is > fairly common on this type of machine. If you want to run a test then I > can arrange for you to run the client install that will put the ADO > provider on your machine. Thanks, but I think I have another way to make them. > Incidentally, I'm still running into situations where a get of a string > field's value will return the actual string in some instances and in > other instances it will return a numeric value that has to be fed to > peek_bstr(). Weird, huh? If you install the ADO provider for my > AS/400 then I might be able to provide some examples. > > Please don't think that I want you to do all the work here! I want to > learn how it's all put together but I haven't been able to find a > starting point to figure out how the functions are put together. Can you > at least point me in the right direction? Try this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm/chap7_5alv.asp You might be able to use these functions to change a decimal to a double or something. Otherwise, perhaps if you could post the contents of the VT_DECIMAL (i.e., peek( {variant,16} ) ) we might be able to figure it out. Matt Lewis