Hi Peter,
You can pass a whole dataset to the function and OC will know to deal with it correctly.
For example, if you have the following function in OC:
double myfunc(double x)
{
return x*2;
}
you can then go to script window and type
myfunc(3)=
and you will get 6.
Also, you can type in script window:
data1_b = myfunc(data1_a)
and column b will have values double of column a.
Note that you can also do the above within OC itself.
For example, you can call your previous function in another OC function, such as:
void dd()
{
Dataset ds1("Data1_A");
Dataset ds2("Data1_B");
ds2=myfunc(ds1);
}
Easwar
OriginLab.