Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically changing method code in .vcx
Message
De
14/11/2000 14:04:54
 
 
À
14/11/2000 13:32:10
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00441726
Message ID:
00441745
Vues:
18
>Hello:
>
>I've got problem and was looking for some suggestions. I am writing a project hook that automates building our exes, copying files, etc.
>
>
>We have an inhouse bug tracking system that we are using that takes this format:
>*++* BUG|103|jb|11/14/2000 01:20:27 PM|(version number here)|this is a bug fix.*--*
>
>One of the tasks is to replace the version number in the statement and then write that back to the methods field of the .vcx.
>
>*++* BUG|103|jb|11/14/2000 01:20:27 PM|4.0.16|this is a bug fix.*--*
>
>this part works fine; however, when I open the form in the designer, the following is what shows in the method:
>
>
>oad
>* ---------------------------------------------------------------
>*
>* form UNLOAD Method
>*
>* ---------------------------------------------------------------
>return thisform.cRetur
>
>
>should be:
>
>* ---------------------------------------------------------------
>*
>* form UNLOAD Method
>*
>* ---------------------------------------------------------------
>return thisform.cReturnValue
>
>This happens on nearly all methods within the vcx and only for the particular class that gets changed programatically. Extra characters are being inserted at the beginning of the method and characters are being truncated from the end. Is there something special I'm missing?


After doing the replace on the methods field, blank out the objcode field for all records. Then close the vcx and compile the class.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform