How to tokenize a string. In Java you can use an object of the stringTokenizer class to break up a string in to tokens. Dynamics AX has a handy class called TextBuffer with which you can achieve a similar effect. This example shows how (the code is written as a job): static void Job7(Args _args) { TextBuffer t; t = new TextBuffer(); t.ignoreCase(true); t.regularExpressions(false); // Set the text to break in to tokens t.setText("When I find myself in times of trouble, mother Mary comes to me, speaking words of wisdom, let it be. And in my hour of darkness she is standing right in front of me, speaking words of wisdom, let it be."); // The delimiter to search for when finding tokens is space while (t.nextToken(false," ")) { info...
My thoughts on Dynamics AX application development. I have been working as a consultant with Microsoft ERP-technology since 1994. Currently I work at Optimate A/S. My main focus is customization and application development. This blog is merely my place to put stuff that I want to remember. If anybody can benefit from reading this, that's great :0). Feel free to use any code snippets posted - but accept that you do this at your own risk!!!