I don't know what are you trying to do.
CountX and CountY is like a tab?
why don't store the values in a full string XD
CountX and CountY is like a tab?
why don't store the values in a full string XD
''''Temporal Amount 3digs(val a) + 3digs(val b) ''''---------------------------030 090 TempAmountX = 30090 ' If I have TempAmountX I can generate TempAmountY and CountX and CountY Xpos=10 Ypos=45 'in=TempAmountX out=CountX and CountY CountX=Int(Left$(Right$("0"+TempAmountX,6),3))/30 CountY=Int(Right$(TempAmountX,3))/30 Print Print "TempAmountX = "+TempAmountX+" ===> CountX="+CountX+" CountY="+CountY Print Print "XPos+(30*CountX)-(CountY*30)" Print Xpos+" + (30*"+CountX+"="+30*CountX+") - ("+CountY+"*30="+CountY*30+") = "+(Xpos+30*CountX-CountY*30)+" <=== REAL TOTAL" Print Print "YPos+(15*CountY)+(CountX*15)" Print Ypos+" + (15*"+CountY+"="+15*CountY+") + ("+CountX+"*15="+CountX*15+") = "+(Ypos+15*CountY+CountX*15)+" <=== REAL TOTAL" Print 'TempAmountX = Int(String(30*CountX)+Right$("00"+String(CountY*30),3)) TempAmountY = Int(String(15*CountY)+Right$("00"+String(CountX*15),3)) Print "TempAmountY = "+TempAmountY+" ===> CountX="+CountX+" CountY="+CountY 'in=TempAmountY out=CountY and CountX CountY=Int(Left$(Right$("0"+TempAmountY,6),3))/15 CountX=Int(Right$(TempAmountY,3))/15