Posted: Wed Aug 27, 2008 1:40 am Post subject: How to get the next record from queues in mq series
Acolyte
Joined: 26 Aug 2008 Posts: 72
Hello,
This is vijay.I have a problem I want the next records to be processed one by one in "NEXT" Button click.I am always getting the First record.
This is my code:
//Create a New Message
queueMessage = new MQMessage();
queueMessage.Format = MQC.MQFMT_STRING;
queueGetMessageOptions = new MQGetMessageOptions();
queueGetMessageOptions.Options = MQC.MQGMO_BROWSE_NEXT ;
//Get the Message from the Queue
queue.Get(queueMessage, queueGetMessageOptions);
//Displaying the Relavent Data from the Queue into the "Get the Data from the Queue" Text Box
txtMervaGetData.Text=queueMessage.ReadString( queueMessage.MessageLength );
I have used this Code but I am not getting the next record.
Please help,
Thanks,
Vijay...
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