hi prof

currently, the left n right button works for mode singapore

code
action:
x=x+0.25714; right
and
x=x-0.25714; left

i need some tips on a generalized code for the other modes

attached in my attempt

i don't understand how to read some of your codes
[code]if(mode.equals("0.02 mm version 1")){
dycst=1.;
n2s=51;
dx2=49*dxm/50;
nmode=5;
L=50*dxm+size;
// l_unit="0.02mm";
unit=0.02;
}else if(mode.equals("0.1 mm version 1")){
dycst=0.;
n2s=51;
dx2=49*dxm/50;
nmode=5;
L=50*dxm+size;
// l_unit="0.1mm";
unit=0.1;
}else if(mode.equals("0.05 mm version 1 singapore schools")){
dx2=39*dxm/40*2; //
n2s=21; // number of intervals on the lower scale
dycst=1.; //
nmode=2; //
L=40*dxm+size;
// l_unit="0.05mm";
unit=0.05;
}else if(mode.equals("0.1 mm version 2")){
dx2=39*dxm/40*2;
n2s=21;
dycst=0.;
nmode=2;
L=40*dxm+size;
// l_unit="0.1mm";
unit=0.1;
}else if(mode.equals("0.05 mm version 2")){
dx2=19*dxm/20;
n2s=21;
dycst=1.;
nmode=2;
L=20*dxm+size;
// l_unit="0.05mm";
unit=0.05;
}else if(mode.equals("0.1 mm version 3")){
dx2=19*dxm/20;
n2s=21;
dycst=0.;
nmode=2;
L=20*dxm+size;
// l_unit="0.1mm";
unit=0.1;
}
l_unit=unit+"mm";
x6[4]=x6[5]=x2+L;[/code]


i will try to figure out asap.



/htdocs/ntnujava/ejsuser/14019/users/sgeducation/lookang/weecaliper09international_pkg/weecaliper09international.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(824.5kB):double click downloaded file to run it. (2 times by 2 users) , Download EJS source (1 times by 1 users) View EJS source