Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stuctural cdx or idx not found
Message
De
29/09/1998 05:43:10
 
 
À
29/09/1998 05:33:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00141779
Message ID:
00141810
Vues:
28
>Ooops. A small change in code :
>>>i want to ignore this message
>>> "stuctural cdx or idx not found"
>>> programatically
>>Then you should open the table lowlevel first and remove CDX reference.
handle=fopen("mytable.dbf",12)
>>=fseek(handle,28)
>><d>lnPokeByte = bitand(fread(handle,1),0xFE)</d> && Remove CDX flag
>lnPokeByte = bitand(asc(fread(handle,1)),0xFE)
>>=fseek(handle,28)
>>=fwrite(handle,lnPokeByte,1)

Minor correction:

=fwrite(handle,CHR(lnPokeByte),1)

>>=fclose(handle)
Of course you should also check if you can have the handle and why not too.
>>Cetin
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform