Discussions
Categories
Groups
Help
Home
User Community
Discussions
Exporting equations to file
unknown
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.
Accepted answers
All comments
XanGregg
Use Char() to convert anything to text, and use Save Text File to save text to a file.
unknown
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
unknown
Thanks.
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of