Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing Hexdecimal problem - help
Message
From
07/02/1999 21:06:15
 
 
To
07/02/1999 20:18:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00184940
Message ID:
00184948
Views:
19
>Hi,
>
>I recently want to modify the DBF file header so that normal program cannot open it, the header first byte is
>
>0x03, I want to change it to 0xFF
>and on changing it back, I coded the following below
>
>lbyte1 = RIGHT(TRANSFORM(03,'@0'),2)

Try:

lbyte1 = CHR(3)

>FSEEK(lFileHandle,0,0)
>fwrite(lFileHandle, lbyte1,1)
>
>
>On completion, I often see 0x30, not 0x03, the file can still be
>open. How can I code it to write 0x03.
>What is wrong with my code, please advise or comments.
>Thank a lot.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform