Come esportare i dati della colonna in stringa o txtHo la seguente tabella dati, come posso esportare la colonna utilizzando JSL:
1. stringa = 561193, 542003, 527679...
2. esportare i dati in .txt dove i valori mostrano: 561193, 542003, 527679...
s
Accesso ai datiRe: Come esportare i dati delle colonne in stringhe o txtEcco un modo per farlo
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 );