The names of Windows API function in DECLARE statement are case-sensitive. Doule check your declaration. This works for me
DECLARE long GetLocalTime IN WIN32API string @lcLocTime
GetLocalTime(@lcLocTime)
>I was playing with the GetLocalTime Api function from Kernel32.
>If I
DECLARE long GetlocalTime IN WIN32API string @lcLocTime
>I get an error message immediately of:
>
>
Cannot find entry point GetLocalTime in the DLL>
>If I instead
DECLARE long GetLocalTime IN KERNEL32 string @lcLocTime
>I get that same error message when I use it via GetLocalTime(@lcLocTime).
>
>I've checked the case of the function call, and it appears to be ok.
>
>This works perfectly if I do it in VB6, so it can't be the Kernel32 dll that is at fault.
>
>Any ideas?
>
>Thanks
>
>Alan
--sb--