Execute External X++ File



static void ExecuteExternalX++File(Args _args)
{
    TextBuffer  textBuffer;
    XppCompiler xppCompiler = new XppCompiler();
    Source source;
    textBuffer  = new TextBuffer();
    textBuffer.fromFile(@"C:\\Users\\toto\\Desktop\\codeX++file.txt");
    source  = textBuffer.getText();  
    if (!xppCompiler.compile(source))
    error (xppCompiler.errorText());
    runbuf(source);
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.