如何将列数据导出为字符串或txt我有以下数据表,如何使用 JSL 导出该列:
1.字符串 = 561193, 542003, 527679...
2.将数据导出到.txt,其中值显示:561193、542003、527679......
s
数据访问回复:如何将列数据导出为字符串或 txt@txnelson非常感谢!
回复:如何将列数据导出为字符串或 txtNames Default To Here( 1 );
dt = Current Data Table( );
// Stop the script if no open data tables
If( Is Empty( dt ), Stop());
// Make list of column names
colNames = dt << get column names();
// Select the column
nw = New Window("Column names", <<MODAL></MODAL>回复:如何将列数据导出为字符串或 txt@txnelson ,非常感谢您的回复。它确实有效。
我是 JSL 新手。在这里我需要您的帮助:如何使用选定的列替换以下 JSL 中的“dt:number”?
Names Default To Here( 1 );
dt = Current Data Table( );
// Stop the script if no open data tables
If( Is Empty( dt ), Stop());
// Make list of column names
colNames = dt << get column names();
// Select the column
nw = New Window("Column names", <<MODAL></MODAL>
回复:如何将列数据导出为字符串或 txt这是一种方法
Names Default To Here( 1 );
// Create an example data table
dt = New Table( "Example",
add rows( 100 ),
New Column( "Number", character, set each value( Char( Random Integer( 1000, 9999 ) ) ) )
);
// Convert character column to a literal string value
string = Concat Items( dt:number[Index( 1, N Rows( dt ) )], "," );
// Write the string variable to a .txt file
Save Text File( "$TEMP/savedfile.txt", string );