Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically changing method code in .vcx
Message
From
14/11/2000 14:04:54
 
 
To
14/11/2000 13:32:10
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00441726
Message ID:
00441745
Views:
14
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform