web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Print message without new line

(0) ShareShare
ReportReport
Posted on by 497

function to print but without new line??

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    on at

    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

  • murtafiah Profile Picture
    497 on at

    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?

  • Community Member Profile Picture
    on at

    Do you mean printing 2 messages in a same line ?

    Print "Hello World" + " " + "How are you";

    Pause;

  • murtafiah Profile Picture
    497 on at

    if i want display example 1 2 3 4 without new line use for loop, how print it?

  • Community Member Profile Picture
    on at

    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

  • murtafiah Profile Picture
    497 on at

    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...

  • Martin Dráb Profile Picture
    240,845 Most Valuable Professional on at

    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.

  • Suggested answer
    Martin Dráb Profile Picture
    240,845 Most Valuable Professional on at

    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.

  • murtafiah Profile Picture
    497 on at

    i am really sorry if i was your angry,

    but thanks for your help...

  • Martin Dráb Profile Picture
    240,845 Most Valuable Professional on at

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans