T O P I C R E V I E W |
jvpiera |
Posted - 10/16/2006 : 03:28:26 AM Origin Version (Select Help-->About Origin): 5.0 Operating System: windows xp
Hi,
I tried to assign the name of a file column saved in a string to a dataset but it doesn't work.
getfile *.ASC; // %A contain the name of the file. %P=%[%A,'.']; %P=%P_B; // Now %P contain FileName_B without the // extension ASC. create A50_D 651; // I created a new dataset. for (i=0;i<652;i++) { A50_D=(%P); // This doesn't work. } [i][i] |
1 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 10/16/2006 : 07:55:25 AM The create command creates numeric datasets and there is no way change the format of a hidden dataset. Try this instead...
getfile *.ASC; %P=%[%A,'.']; %P=%P_B; win -t D; // create new worksheet wks.col2.name$=D; // change name of column 2 to D wks.col2.format=2; // change format of column 2 to text set %H -er 651; // create 651 rows win -r %H A50; // change wks name to A50 loop(i,1,651) { A50_D[i]$=%P; // set row i of col D to %P };
Mike Buess Origin WebRing Member |
|
|