logical character Read
Posted: Sun Oct 28, 2007 7:10 am
Hello
I want to write a small program that checks integrity of a dbf file. We have more and more customers having corrupted data in their dbf files.
I have observed the corrupted files and noticed that numeric fields are corrupted with nonsense data but always numeric nonsense, so not easy to track.
The key point is "logical fields" that should contain .t. or .f.
It seems that dbf's integrity is completely broken in these fields where i can find any nonsense chartacter.
I have tried to write a function but i get stuck on reading the logical character
The idea is , read the structure of a dbf file, if the field is loigical test the content of the field and make sure there is .t. or .f.
How can i read the content of the field ?
VALTYPE(...) will always return L for those fields
CVALTOCHAR() willreturn .F. for corrupted fields but not the content
What other function i can use ? Any clue ?
Thanks for your time,
Richard
I want to write a small program that checks integrity of a dbf file. We have more and more customers having corrupted data in their dbf files.
I have observed the corrupted files and noticed that numeric fields are corrupted with nonsense data but always numeric nonsense, so not easy to track.
The key point is "logical fields" that should contain .t. or .f.
It seems that dbf's integrity is completely broken in these fields where i can find any nonsense chartacter.
I have tried to write a function but i get stuck on reading the logical character
The idea is , read the structure of a dbf file, if the field is loigical test the content of the field and make sure there is .t. or .f.
How can i read the content of the field ?
VALTYPE(...) will always return L for those fields
CVALTOCHAR() willreturn .F. for corrupted fields but not the content
What other function i can use ? Any clue ?
Thanks for your time,
Richard