Tags » Breakpoint

Remove breakpoint in X++ code

Removing the hardcoded breakpoint in Classes/Methods:

void breakpointRemoving(Args _args)
{
#AOT Name name;
NumberOf recordCount;
TreeNode treeNode,treeNode1;
SysDictClass sysDictClass;
str code;
str string;
TextBuffer textBuffer;
string = "breakpoint;";

textBuffer = new TextBuffer();

treeNode = TreeNode::findNode(#ClassesPath);
treeNode = treeNode.AOTfirstChild();

while(treeNode)
{
treeNode1 = treeNode;
//Class got selected
treeNode = treeNode.AOTfirstChild();

while (treeNode)
{
//Saving the code to str;
code = treeNode.AOTgetSource();

//Saving the code to textBuffer
textBuffer.setText(code);

if(textBuffer.find(string))
{
//Replacing the string with the one space
textBuffer.replace(string," ");

//Saving the updated code from textBuffer to treenode
treeNode.AOTsetSource(textBuffer.getText());

//Saving & Compiling the updated code from treenode to AOT
treeNode.AOTsave();
treeNode.AOTcompile();
}

//Saving the methods/class
treeNode1.AOTsave();

//Moving to next method
treeNode = treeNode.AOTnextSibling();
}

//Moving to next class
treeNode = treeNode1.AOTnextSibling();
}

}

Ax2012

Works in Progress—Horror Short Title Reveal

Following the new regime on the old blog here of posting every two weeks (see “Write More, Blog Less), I’m back. The good news is that I’ve been really productive in the last couple of weeks and my fiction writing has moved forward on all fronts. 278 more words

Writing

Works in Progress—A Bite on the Line

An update on my works in progress.

AFTA—An editor wrote back in response to a query letter 341 more words
Writing

Are Those Being Aborted Our Neighbors? | BreakPoint

Are Those Being Aborted Our Neighbors? If so, are we loving them as Ourselves?

By: Rolley Haggard | BreakPoint

The apocryphal story is told of a man who, hearing… 1,284 more words

ABORTION

Works in Progress—Getting It Done

An update on my works in progress.

TMWSE—Well, finally knocked this one off. It was about 5,000 words two weeks ago. Now, it’s 7,500 words and the first draft is done. 191 more words

Writing

Works in Progress–Getting There

A quick update on where I’m at.

TMWSE—When last we heard about this work (a horror short story), it was 3,500 words and I was on Chapter 3 of 5. 142 more words

Writing

Get out from under that rock!

Or…maybe you don’t have Facebook (not necessarily a bad thing :).

Or…you don’t Tweet (same thought as above).

Or…you have a life!!!?

I’m here to help you out.   226 more words

The Hobbit