cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lala
Level IX

Save the following as txt with JMP?

How can save txt files without excess "

2024-02-27_20-28-53.png

#title=""
#tooltip="[",2052
#icon="I:\ABC\[.ico"

Thanks!

2024-02-27_20-31-51.png

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Save the following as txt with JMP?

You could get the values into a list, convert it to a string and then save that

Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(3),
	Compress File When Saved(1),
	New Column("Col",
		Character,
		"Nominal",
		Set Values({"#title=\!"\!"", "#tooltip=\!"[\!",2052", "#icon=\!"I:\ABC\!\[.ico\!""})
	)
);

vals = dt[0, 1];
str = Concat Items(vals, "\!N");
Save Text File("$TEMP/test.txt", str);

wait(0);
Web("$TEMP/test.txt");
-Jarmo

View solution in original post

2 REPLIES 2
lala
Level IX

回复: Save the following as txt with JMP?

  • This result is incorrect.

jthi
Super User

Re: Save the following as txt with JMP?

You could get the values into a list, convert it to a string and then save that

Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(3),
	Compress File When Saved(1),
	New Column("Col",
		Character,
		"Nominal",
		Set Values({"#title=\!"\!"", "#tooltip=\!"[\!",2052", "#icon=\!"I:\ABC\!\[.ico\!""})
	)
);

vals = dt[0, 1];
str = Concat Items(vals, "\!N");
Save Text File("$TEMP/test.txt", str);

wait(0);
Web("$TEMP/test.txt");
-Jarmo

Recommended Articles