Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to alter length value of a DBC Property
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Need to alter length value of a DBC Property
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01108649
Message ID:
01108649
Vues:
52
I have some code that inserts two characters into some of a DBC's records, in the Properties field. Specifically, if the record defines a numeric field in a view definition, I am inserting a comma and the number of decimals into the DataType property. For example, if the value of the DataType property is MB(8), I am changing it to MB(8,4), with the number of decimals picked up from a metadata table. After doing that, I need to increase the property's length. From Doug Hennig's excellent article in FoxTalk a while back, which included his FixDBC utility, I know that the first four characters of the seven character string of low-order binary data preceding the property value store the length of the property. I know the length will never become more than 15 characters, so I think I can just add 2 to the first character. If so, how do I do that? Have not done much binary bit twiddling or binary addition in FoxPro (and assembler was waaaaaay too long ago to remember).

Thanks in advance for any advice.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform