Monday, April 10, 2017

Dynamics NAV - Write to text file in CAL

https://dynamicsuser.net/nav/f/developers/8867/best-way-tro-write-to-a-file?pi2079=1



FileMyHTML.TEXTMODE:=TRUE;
FileMyHTML.CREATE('C:\TEST\main.txt');
FileMyHTML.WRITE('<html>');
FileMyHTML.WRITE('');
FileMyHTML.WRITE('<head>');
FileMyHTML.WRITE('<title>My Page</title>');
FileMyHTML.WRITE('</head>');
FileMyHTML.WRITE('');
FileMyHTML.WRITE('<P>Hello world!</p>');
FileMyHTML.WRITE('');
FileMyHTML.WRITE('</html>');
FileMyHTML.CLOSE();

Variables
Name DataType Subtype Length
FileMyHTML File

No comments:

Post a Comment