|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Hi all |
« View previous topic :: View next topic » |
Author |
Message
|
sidhusaju |
Posted: Wed Jun 20, 2007 2:31 am Post subject: Hi all |
|
|
Apprentice
Joined: 03 May 2007 Posts: 27
|
I want to store the messageid as an integer in to db.Is there any way to convert to messageid as an integer value from vb.net |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Jun 20, 2007 2:46 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi
Messages id storage class is Byte and its 48 byte length.
You can cast it and see from your programme.
Thanks and Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jun 20, 2007 2:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
MsgId is an MQBYTE24. It's 24 bytes long. When converted to a hex string, it's 48 characters long.
It's never an integer of any sort. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Jun 20, 2007 3:09 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Thanks Jeff,
so cant we able to cast it to integer
Thanks and Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 20, 2007 3:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Gaya3 wrote: |
Thanks Jeff,
so cant we able to cast it to integer
Thanks and Regards
Gayathri |
I doubt seriously that you will ever be able to do a Cast to Integer.
On most systems Integer has a byte length that is seriously less than 24 bytes... You'd have to check the max/min values of your system to test the limits of the integer...
So no it is not possible to do a cast to integer...
Now there are numbers that can be cast to: but those are either in the Math class or part of some SSL package..., and they do take a byte array as constructors... To be handled with extreme care any way you look at it. No liability, adequacy of use etc... implied.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|