>>>In VFP 5.0 is it possible to pgogrammatically write to a table header's back link information, and/or the DBC's forward link information.
>>>
>>>Eg. If I wish to have the user select a table location at runtime, (with the runtime module, not full VFP) how do I pass the instructions to the database & table to create this link. I've been using the 'ADDTABLE' command, and seem to be having some problems in the field. Just wondered if there was a means of directly accessing the headers.
>>
>>-Backward link data is in the header, after header record terminator (0x0D - 263 bytes space).
>>You could change with lowlevel FP commands.
>>-Forward link is in related record's (tablename) "property" field.
>>You could change with replace
>>ie: Fwlink "replace property with stuff(property, at(oldpathanddbf,property),len(oldpathanddbf),newpathanddbf)
>>But you would need exclusive access.
>>Cetin
>
>
>Thanks, I believe you've given me exactly what I needed. Will let you know how it works.
>
>Jim
Jim,
I already know it works. Major drawback is exclusive need access to the table (for blink) and to Dbc (for flink). I use it for a very old project where tables with same name&struc, scattered to different dirs and I wanted to add extended props via dbc. I would send the code but hard to locate for now.
Cetin