I wrote the code like below and when i want to initialize the variables(Comcom,MQBus) in C/AL Global variable.i have given the Datatypes of those variables but it doesn’t show the sub type of variables.if i run the C/AL Code , it throws “A sub type of variable is not intialized”.
The code you try is intended for NAV2009 or earlier utilizing AutomationServer objects that have been supported those days.
I’m not sure you can still use them.
Then u give me the suggestions ,I’m using NAV 2016.Give me the steps .I googled it,i got this code only ,thats’y i tried with that code.Please Suggest me ,what you are using now.
I gave you the code yesterday. You are just ignoring it.
You even got an example how to send data to a message queue and how to receive data from a message queue.
If you do not know a certain command (like STRSUBSTNO), then google that command.
You will rarely find somebody writing the complete code for you.
If you don’t know anything about C/AL and development inside Dynamics NAV… Then DON’T DO IT! Get someone to do it for you. Perhaps sitting next to you. The stuff that you want to do right now has pieces that are elementary for NAV development.
Also doing development inside NAV is not like any other development task, you simply have to know a lot about accounting. If you don’t know anything about counting… sorry to say then you can *** (spelled wrongly) up everything for a lot of other people.
Think like this… It is hard to do a handbrake-turn in a car, if you don’t know how to drive. It safer to let an experienced person do it for you.
The 1st code will create a message and send the content of the InStream to the private queue with the name stored in Receipient.“MessageQueue Name” to the computer where the name or IP address is stored in Recipient.“TCP/IP Address” using the protocol as stored in the ProtocolName variable.
the second code will receive all messages and provide the content in the InStrm variable.