Stephen,
>do you know, are all "declare"s case sensitive?
It's a C/C++ thing that causes the case sensitivity. As far as VFP is concerned only the DECLARE command is affected. Once you declare it properly you can call it with any case:
declare dll Sleep ...
Sleep(100)
sleep(100)
SLEEP(100)
sleeP(100)
all of the above calls will work.