Thanks, Anatoliy. That got it going!
>Hi Chris,
>
>If
lcVal is of character type then you must change the
WriteFile declaration. Currently you declare
lpBuffer as
INTEGER.
>
>Should be:
>
>DECLARE INTEGER WriteFile IN kernel32;
> INTEGER hFile,;
> STRING @ lpBuffer,;
> INTEGER nBt2Write,;
> INTEGER @ lpBtWritten,;
> INTEGER lpOverlapped
>
>And
lcVal should be passed by reference.
>
>Check this link:
>
http://www.news2news.com/vfp/?function=301>
>Unfortunately :( all examples with the WriteFile require memvership.