Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
andrewdsto
Posted - 06/19/2008 : 02:38:55 AM Origin Version (Select Help-->About Origin): 8.0 pro Operating System: win XP
Hi, I am having a problem manipulating datasets. Whilst a plot window is active I am having problems manipulating dataset with '-=' command among others. It does not matter if the dataset is temporary or exists in a worksheet. If I make the worksheet active everything runs as it should. See example below.
If I run the following script it produces the following output.(I've include the type commands as pointers to what I am acting on/with). Here %w contains the name of the worksheet (in this case 'E01A2') & 'Bubble' is the name of the plot window.
del tempdataset; mark1b=; type "%%w = %w"; type "%%h = %h"; type "%%c = %c"; yoffsetval=; tempdataset=%c; %c[mark1b]=; type "%%h = %h"; tempdataset[mark1b]=; tempdataset -= yoffsetval; tempdataset[mark1b]=;
type "----------------------------------";
type "%%w = %w"; type "%%h = %h"; type "%%c = %c"; yoffsetval=; tempdataset=%c; %c[mark1b]=; win -a %w; type "%%h = %h"; tempdataset[mark1b]=; tempdataset -= yoffsetval; tempdataset[mark1b]=;
In the first instance I have a plot window active with the plot described by %c in this case the temporary dataset is not acted upon by the '-=' function. However if I switch to the worksheet prior to the "-=" function it acts as expected.
Why?
If I remove the temporary dataset from the code and replace it with a real worksheet data column I still get the same thing.