I've never actually used DarkBasic, but if you post the code I might be able to help as I have knowledge in BASIC and various other languages.