Yes, playing with the table header will most likely corrupt the table, unless you know exactly what you are doing. Why do you want to write to the table header in the first place? Visual FoxPro is supposed to handle its table headers automatically. If you need to save information for later, you write them to fields, not to a table header.
>I need to place a four Digit information (like '1123 ') in Foxpro Table Header and also need to get the same value in a variable when Required.
>
>Using the following code I could write to it. But dont know how to again get the value of 1123 from the table.
>
>
>IF FILE('CMTSCODE.DBF')
>Handle= Fopen('CMTSCODE.DBF', 2)
>Fseek(Handle, 12, 0)
>Fwrite(Handle, "1123", 4)
>Fclose(Handle)
>ENDIF
>
>
>Another problem is that, will the insertion of above '1123' will corrupt/disturb my VFP Table. If yes, whats the remedy,
>
>Regards
>Harsh
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)