billyrainbow
Germany
Posts |
Posted - 09/19/2007 : 04:06:41 AM
|
Origin Version (Select Help-->About Origin): 7.0303 Operating System: Windows 2000
Hello,
I wrote a little programm in Origin C to import data from a textfile (no CSV!). I would like to add as first column a row for dates in string format, but when i execute the loop
if (i==6) { string y = row.GetToken(0,' '); string m = row.GetToken(1,' '); string d = row.GetToken(2,' '); string date; date.Format("%s.%s%s",d,m,y); for (u=0; u<120; u++) { dsDate[u] = date; // ERROR (-->Dataset dsDate !!) } }
the error message "Run-Time Error in Origin C funktion, unknown error" occurs. Is it possible, that Datasets don't accept strings? If this is the Problem, does anyone know an alterative method to add values to columns without Datasets? I know that it works manually, but i really would like to have it made in a loop...
Thank you in advance, Marion.
Edited by - billyrainbow on 09/19/2007 04:09:39 AM |
|