列データを文字列または txt にエクスポートする方法次のデータ テーブルがあります。JSL を使用して列をエクスポートするにはどうすればよいでしょうか。
1. 文字列 = 561193、542003、527679...
2. 値が 561193、542003、527679 などであるデータを .txt にエクスポートします。
s
データアクセスRe: 列データを文字列または txt にエクスポートする方法@txnelsonどうもありがとうございます!
Re: 列データを文字列または txt にエクスポートする方法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>Re: 列データを文字列または 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>
Re: 列データを文字列または txt にエクスポートする方法これを行う方法の1つは次のとおりです
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 );