Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing & Retriving from Foxpro Table Header
Message
From
18/06/2013 06:58:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/06/2013 05:32:38
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01576598
Message ID:
01576601
Views:
62
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform