function rngfilt(x, r)
{
rngfilt1 = x;
rng=Ref(rngfilt1,-1);
xp=x+r;
xn=x-r;
rrngfilt1 =IIf(x > rng,IIf( xn < rng,rng, xn, IIf(xp > rng, rng, xp)));
return rngfilt1;
};
filt = rngfilt(source, smrng);
error shows as "Error 16 : Too many arguments" and "Error 17: Missing arguments" under rrngfilt1 line
Please help me to fix this error
{
rngfilt1 = x;
rng=Ref(rngfilt1,-1);
xp=x+r;
xn=x-r;
rrngfilt1 =IIf(x > rng,IIf( xn < rng,rng, xn, IIf(xp > rng, rng, xp)));
return rngfilt1;
};
filt = rngfilt(source, smrng);
error shows as "Error 16 : Too many arguments" and "Error 17: Missing arguments" under rrngfilt1 line
Please help me to fix this error
Attachments
-
11.8 KB Views: 41