I am not all that familiar with X-10, but posting the problem code may help. Could be something as simple as forgetting
Include "modedefs.bas"