Subscribe Bookmark RSS Feed

Exporting equations to file

Hi-

How can I write a script which writes the equations of select columns as text to a text file? Maybe in normal equation format, if possible.

Thx.
3 REPLIES
XanGregg

Staff

Joined:

Jun 23, 2011

Use Char() to convert anything to text, and use Save Text File to save text to a file.
mikev_jmp

Staff

Joined:

Jun 23, 2011

This code will write the text for the formula of a selected column to a text file. Just for one column; you can add a For loop to handle multiples.

cols = Current Data Table() << get selected columns;
newtext = char(cols [the numer one] << get formula);
Save Text File(
"C:\Formula.txt",
newtext
);

Message was edited by: MikeV@jmp

Message was edited by: MikeV@jmp

Message was edited by: MikeV@jmp

The forum didn't seem to like brackets with a 1 inside. So I replaced the "1" with the text "the number one" above


Message was edited by: MikeV@jmp
Thanks.