ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Hi all

Post new topic  Reply to topic
 Hi all « View previous topic :: View next topic » 
Author Message
sidhusaju
PostPosted: Wed Jun 20, 2007 2:31 am    Post subject: Hi all Reply with quote

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
View user's profile Send private message
Gaya3
PostPosted: Wed Jun 20, 2007 2:46 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 20, 2007 2:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Gaya3
PostPosted: Wed Jun 20, 2007 3:09 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 20, 2007 3:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Hi all
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.