Thanks to all for your help. I was missing the @ on the data parameter and assumed that VFP knew that an integer was 4 bytes and the last parameter just needed to be passed a number to satisfy the parameter list.
I realized as soon as I saw both David's and George's responses where my mistakes were. All languages have so many similarities and I have to keep reminding myself of that fact.
Regards,
Mike
Mike