hi Graham
thanks for the info, i tried the following code
CT=GETDRO(24)
DTX=GETTOOLCT (SHORTCT, SHORT5)
TWx=GetUserDRO(1201)
NV=((TWX/2)*-1)+DTX
SetToolCT(SHORTCT, SHORT 5, DOUBLE NV)
DoButton(316)
and i get an error "Scriptter compile error"
Break down of what i am trying to do
CT=GETDRO(24) /get current tool number
DTX=GETTOOLCT (SHORTCT, SHORT5) /get wear value from table, if i add line y line for testing it give error here already
TWx=GetUserDRO(1201) /get user wear value
NV=((TWX/2)*-1)+DTX /calculate new waer value
SetToolCT(SHORTCT, SHORT 5, DOUBLE NV) /store new wear value
DoButton(316) /save tool table
i am probebly doing it all wrong, but then the last real programming i done was BBC basic back in the 80's
thanks Friedrich