In a bowl, combine cucumbers, onions and dill. In a saucepan, combine sugar, vinegar, water and salt; bring to a boil. Pour over cucumber mixture. Cover and chill for 3 hours or overnight.