The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Has Origin some limits on max data to manage?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

zangyef

Italy
Posts

Posted - 05/23/2006 :  06:25:33 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version: 6.0
Operating System: WinXP HE

Hi, I have a problem that I'm not able to solve. I import a TXT file into origin worksheet and perform some operation on it. I wrote a script that, with a for loop, search from column A a value (varh, previously stored). When the cell value match the variable stored the script assign the corresponding value from column G to varl variable.
I run the script and with almost all the TXT files a have it works well except one. It seems it don't enter in the for loop because nothing happens. The only difference from this TXT file with the other is the lenght: about 23000 points. So my question is: has Origin some limits on managing a large number of points? I think this is not the problem but I tried everything!
Please, any suggestion?
Thank you


limit originaldata_A;
for (ii=limit.size; ii>1; ii--){
if (originaldata_A[ii]==varh) {varl=originaldata_G[ii]}};


Mike Buess

USA
3037 Posts

Posted - 05/23/2006 :  09:58:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I don't see anything wrong with your script and don't think there are any hidden limitations. However, this accomplishes the same thing more efficiently...

limit originaldata_A;
for(ii=1;ii<=limit.size;ii++) {
if (originaldata_A[ii]==varh) {varl=originaldata_G[ii]; break};
};

and this is even faster...

ii=list(varh,originaldata_A);
if( ii>0 ) varl=originaldata_G[ii];

Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000