sel.MoveRight(COleVariant((short)1),COleVariant((short)m),COleVariant((short)1));
sel.MoveRight(COleVariant((short)1),COleVariant((short)1),COleVariant((short)0));
tempp=m;
m=tempp+p;
p=tempp;
if (m>n) {m=3;p=1;}
}
if (1!=wrongflag)
{sel.MoveRight(COleVariant((short)1),COleVariant((short)m),COleVariant((short)1));
tempsum=int(fmod(double(tempsum),double(10)));
switch (tempsum)
{ case 0: wf[0].line=55;break;
case 1: wf[0].line=1;break;
case 2: wf[0].line=3;break;
case 3: wf[0].line=4;break;
case 4: wf[0].line=6;break;
case 5: wf[0].line=7;break;
case 6: wf[0].line=9;break;
case 7: wf[0].line=10;break;
case 8: wf[0].line=11;break;
case 9: wf[0].line=20;break;
}