Shagwana #1 When you declare the varibles you should also specify there :type. That should help you get away from these errors. For example; Global image:TImage=LoadImage(filename)