如何將列資料匯出為字串或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 ,非常感謝您的回覆。它確實有效。
我是新的 JSLer。我必須在這裡尋求您的幫助:How can I use the selected columns to replacement "dt:number" in the following JSL?
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 );