Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

New Line character in String in Dexterity Sanscript.

Posted on by 185

Hi Team,

Can anyone provide new line character for a string in sanscript.

*This post is locked for comments

  • Tim W Profile Picture
    Tim W 2,925 on at
    RE: New Line character in String in Dexterity Sanscript.

    We run an audit tool (FastPath) for audit logging and control but when I'm doing a one off log to capture something (or debug something) I do what you are doing.  You could use a table trigger in SQL as a way to not write Dexterity but I like to contain my code and not have to manage it in two places so typically I will use Dex to write to a log file when i need it.

    Tim

  • Mohammed Irfan Profile Picture
    Mohammed Irfan 185 on at
    RE: New Line character in String in Dexterity Sanscript.

    Tim,

    I have another question

    How do we implement logging functionality in dexterity !!

    Currently I am storing logs in custom table

    Is there a better way!

  • Tim W Profile Picture
    Tim W 2,925 on at
    RE: New Line character in String in Dexterity Sanscript.

    Normally from my perspective you would be writing to a text file and the CRLF is inferred in the function call.

    text.jpg

    That you can't manipulate a string with a C like function is not that big a surprise to me.  I use the CHAR() function when I need to chuck a hidden character (or two) into a text file.  If you find your shortcut let me know.

     

  • Mohammed Irfan Profile Picture
    Mohammed Irfan 185 on at
    RE: New Line character in String in Dexterity Sanscript.

    in c# we use \n in strings for new line. whats the same for dexterity

  • Verified answer
    Tim W Profile Picture
    Tim W 2,925 on at
    RE: New Line character in String in Dexterity Sanscript.

    Here's how mine look.

    local string CrLf;

    CrLf   = char(13) + char(10);

    ....... "Your Text"+CrLf;

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: New Line character in String in Dexterity Sanscript.

    New line characters? Sorry but what exactly you mean by it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans