> Try to add the required Tcl_SetVar in function liczSL Specifically: TCL_SetVar("wlxp",xc) TCL_SetVar("wlyp",yc) just before the endfunction of function liczSL I let you do the homework related to formatting these two values. Francois