Notifications
Announcements
No record found.
function to print but without new line??
*This post is locked for comments
Try and explain your questions a little more.
If you're looking to print anything from X++, you can use print keyword.
eg:
print "Hello world";
pause;
refer to msdn.microsoft.com/.../aa676511.aspx
yes i know, but i want printting example "Hello World" use 2 function print in x++..
and when run have to Hello World without new line.. how?
Do you mean printing 2 messages in a same line ?
Print "Hello World" + " " + "How are you";
Pause;
if i want display example 1 2 3 4 without new line use for loop, how print it?
Well, Print function is not the best way to do.
you can use infolog messages along with strfmt() function. this will display an information dialog with the message you give.
eg: info(strfmt("%1, %2,%3,%4",1,2,3,4))
output in the infolog will be 1,2,3,4
example i am write code below :
for(i=1;i<=4;i++){
print..
}
how to print if i want display 1,2,3,4 without new line...
Please, do you really think that "X++ in AXAPTA 2012" is the most descriptive title for your question? Please don't force me to fix every single thread you post here.
Also, please always use at least a few sentences to explain what you're trying to achieve. "function to print but without new line??" isn't sufficient. You can't seriously ask others to give you their time if it's it's not worth a minute of your time for describing your problem properly.
print statement always prints a line, therefore if you want to use it, first build the text you want to print and then use a single print statement with the text.
I hope you're aware of the fact that print is only for developers; use infolog (or a form) if you want to show messages to users.
i am really sorry if i was your angry,
but thanks for your help...
I'm not angry, I just ask you to follow some rules on this forum. For example, if all threads was named "Question about Axapta" or so, the forum would be unusable. Please keep it in mind when asking new questions here.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Priya_K 4
Martin Dráb 4 Most Valuable Professional
MyDynamicsNAV 2