Pete said something like: > > Can someone see what might be wrong with the following code > > I can't get it to work... > When ever I call the DCOD my app crashes, so I'm assuming that there's > something wrong with the DCOD > > I've tried just about anything I can think of but no luck > Pete, I spent alot of time trying to get a DCODs to work. The one lesson a learnt, was to never have a short in the formal paramaters. Sometimes they worked, sometimes they would crash. I put it down to it upsetting the stack - now I always use longs for all paramaters. You can always convert them back when you enter your code: NeededAShort% = TheLongThatWasPassed& Jamin