AxCoder Post
I was recently checking up on my fellow bloggers, and came across a great entry about an undocumented string function that can be done. AxCoder was the first one that has ever mentioned this, and his post is here: AxCoder Post
Anyway this post basically tells you how you can use Raw strings in X++ or verbatim strings. This exists in C#, and other OO languages. This is actually a very Cool feature, because what it allows you to do is add an @ right after the = and then the string contained within the " " can be built in a raw format. Meaning you don't have to have \\, instead \. And the string does not end unitl you put the last "; and the end.
For example: s =@ "c:\temp\one\two
";
instead of s = "c:\\temp\\one\\two";
s=s+" ";
s=s+" ";
Thanks AxCoder for sharing this with the world. It's a very useful peice of information to have, for any developer. The only thing that I am concered with about this is how the string is stroed, and also when you preform is functions, of substr, etc. on the string how it would react, as the string is raw in memmory?? Maybe that could be an expand post that I can do next time!
Check back for more!
Find a job at: www.DynamicsAXJobs.com
Anyway this post basically tells you how you can use Raw strings in X++ or verbatim strings. This exists in C#, and other OO languages. This is actually a very Cool feature, because what it allows you to do is add an @ right after the = and then the string contained within the " " can be built in a raw format. Meaning you don't have to have \\, instead \. And the string does not end unitl you put the last "; and the end.
For example: s =@ "c:\temp\one\two
";
instead of s = "c:\\temp\\one\\two";
s=s+" ";
s=s+" ";
Thanks AxCoder for sharing this with the world. It's a very useful peice of information to have, for any developer. The only thing that I am concered with about this is how the string is stroed, and also when you preform is functions, of substr, etc. on the string how it would react, as the string is raw in memmory?? Maybe that could be an expand post that I can do next time!
Check back for more!
Find a job at: www.DynamicsAXJobs.com