안녕,
사용자가 파일 이름을 입력하고 csv로 저장할 수 있는 jsl 스크립트를 만들려고 합니다.
여기 내가 시도한 것이 있습니다. 변수 exE를 입력하면 Save()가 작동하지 않습니다. 어떤 제안?
dt = Current Data Table();
current_pref = Char( Arg( Parse( (Char( Get Preferences( Export settings ) )) ), 1 ) );
Pref( Export Settings( End Of Field( Comma ), Export Table Headers( 1 ) ) );
exC = ".cvs";
Nw = new window(""
,<< modal(),
Text box ("Enter File name"),
input = Text edit box("", << Set width(100));,
Spacer Box( Size( 20, 10 ) ),
Buttonbox("Export", path = pickDirectory("Select the folder to save .CSV file:");
aa = input << get text();
exE = Concat( aa, exC );
)
);
save( path || "\" || exE ); ///
Eval( Parse( "pref(" || current_pref || ")" ) );