dim str as string
dim str(1 to 8) as string
dim vl(1 to 8) as single
dim i as long
str=M(2.5)-H(12)-G(5)-cnc(12.5)-ES(20)-CMM(0)-CNC(1.5)-ES(1.5)
for i=1 to 8
str(i)=left(str,instr(str,"-")-1)
str=mid(str,instr(str,"-")+1)
vl(i)=val(mid(str(i),instr(str(i),"(")+1,instr(str(i),")")-1)
str(i)=left(str(i),instr(str(i),"(")-1)
next