Hi Team,
Can anyone provide new line character for a string in sanscript.
*This post is locked for comments
Hi Team,
Can anyone provide new line character for a string in sanscript.
*This post is locked for comments
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
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!
Normally from my perspective you would be writing to a text file and the CRLF is inferred in the function call.
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.
in c# we use \n in strings for new line. whats the same for dexterity
Here's how mine look.
local string CrLf;
CrLf = char(13) + char(10);
....... "Your Text"+CrLf;
New line characters? Sorry but what exactly you mean by it.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156