Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stuctural cdx or idx not found
Message
De
05/10/1998 07:36:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/10/1998 02:33:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00141779
Message ID:
00143806
Vues:
30
>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)
>
>=fseek(handle,28)
>=fwrite(handle,CHR(lnPokeByte),1)
>=fclose(handle)
>
>
>is that so
handle=fopen("mytable.dbf",12)
=fseek(handle,28)
lnPokeByte = bitor(asc(fread(handle,1)),1)
=fseek(handle,28)
=fwrite(handle,CHR(lnPokeByte),1)
=fclose(handle)
1 instead of 0xfe. But just creating an index would write it automatically. If you're doing this with intact indexes for some special purpose then OK.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform