>thanks
>*code to remove cdx
>handle=fopen("mytable.dbf",12)
>=fseek(handle,28)
>lnPokeByte = bitand(asc(fread(handle,1)),0xFE)
>=fseek(handle,28)
>=fwrite(handle,lnPokeByte,1)
>=fwrite(handle,CHR(lnPokeByte),1)
>=fclose(handle)
>
>similarly i can use the code to put the cdx byte again by
>
>
>handle=fopen("mytable.dbf",12)
>=fseek(handle,28)
>&& changed here
>lnPokeByte = bitor(asc(fread(handle,1)),0xFE)
No, you'd say:
lnPokeByte = bitor(asc(fread(handle,1)),1)
to set the bit masked out by the bitand() above.
>
>=fseek(handle,28)
>=fwrite(handle,CHR(lnPokeByte),1)
>=fclose(handle)
>
>
>is that so