Hi,
Version 8.x has better string processing capability in script, and the code could be written the following way using new methods, and perhaps is more "readable" than the old % notation.
Easwar
OriginLab
range rin=1, rout=2;
string str$, str1$, str2$;
for(int irow=1; irow<=rin.GetSize(); irow++)
{
str$=rin[irow]$;
str1$=str.Between("h","p")$;
str2$=str.Between("p",".")$;
rout[irow]=%(str1$) + %(str2$)/1000;
}