Origin Version (Select Help-->About Origin): Pro 7.5 SR4
Operating System: Win XP
I am new to Origin and LabTalk and have written the following piece of code to automate the copying of a particular column in a standardised dataset to a worksheet for comparison. The code follows:
%A = fdlog.MultiOpen.Count;
if (%A => 1)
multiWks_A = Sheet1_D;
else if (%A => 2)
multiWks_B = Sheet2_D;
else if (%A => 3)
multiWks_C = Sheet3_D;
else if (%A => 4)
multiWks_D = Sheet4_D;
else if (%A => 5)
multiWks_E = Sheet5_D;
else if (%A => 6)
multiWks_F = Sheet6_D;
else if (%A => 7)
multiWks_G = Sheet7_D;
else if (%A => 8)
multiWks_H = Sheet8_D;
else if (%A => 9)
multiWks_I = Sheet9_D;
else if (%A == 10)
multiWks_J = Sheet10_D;
else
// Error message here
As far as I am concerned this code is very unwieldy and inelegant.
As a matter of learning I was wondering if the more LabTalk-knowledgable of you could suggest an alternative method of executing this code which would be much more efficient?
Regards,
Andrew Humphries
Edited by - AMHumphries on 09/12/2006 05:31:46 AM