>From VFP help:
>
>If nCodePage is 0, no code page conversion occurs and the newly created
>table or file is not marked with a code page.
>
>however, the following command produces error "invalid code page" in vfp 7 sp1
>
>
>CREATE CURSOR test1 ( f1 c(1) )
>COPY TO test2 as 0
>
>
>Is thsi vfp bug ?
It might be. However, since the error occurs at least back to VFP3, I suspect it's a documentation bug. I've filed it to see which it is.