Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class code not updating
Message
De
28/12/2009 19:48:16
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01440971
Message ID:
01440986
Vues:
50
Victor,

I tried that and it still have the same problem. I even put a zero (0) in the timestamp field in the VCX. No go!

The amazing thing is that the method code in the VCX record is correct. The compile date changes when I look at the class in Rich Schummer's HackCX program, so I am totally at a loss for what this problem is. It's keeping me from geting work done, that's for sure!

Thanks for your input!

Scott

>One thing you can try is this:
>
>CLOSE ALL
>CLEAR ALL
>COMPILE CLASSLIB myclass.vcx
>
>...and to make sure you know all the pathing is right and that it's compiling what you think, make sure you only have one copy of the class libs - try renaming any copies you might have to make sure you're compiling what you think you are...
>
>You can also do something like this:
>COMPILE CLASSLIB *.VCX
>
>...I've found that at times I've had to manually recompile classlib's like this - often times in my case it turns out to be a weird time-stamp issue with the files...
>
>
>>Greetings!
>>
>>In VFP9 SP1, when I add a new class to a specific class library OR modify class method code for a class in the same class library, VFP is not recognizing either of them?
>>
>>For modifying a class method, I had code like this:
>>IF This.lnSchHrsToDate + This.lnScheduledHours > This.lncoursehours
>> This.lnscheduledhours = This.lncoursehours - This.lnschhrstodate
>> This.lnschhrstodate = This.lncoursehours
>>ELSE
>> This.lnSchHrsToDate = This.lnSchHrsToDate + This.lnScheduledHours
>>ENDIF
>>
>>Changed it to:
>>*!* IF This.lnSchHrsToDate + This.lnScheduledHours > This.lncoursehours
>>*!* This.lnscheduledhours = This.lncoursehours - This.lnschhrstodate
>>*!* This.lnschhrstodate = This.lncoursehours
>>*!* ELSE
>>
>>This.lnSchHrsToDate = This.lnSchHrsToDate + This.lnScheduledHours
>>
>>*!* ENDIF
>>
>>But, when I run it in the debugger, the source code is the code BEFORE I made the Change, which means the object code has not changed?
>>
>>I have used Rich Schummer's HackCX tool to delete the object code and recompiled it. I have changed the names of the classes, etc. No matter what I do, I cannot get VFP to recognize the changes???
>>
>>What's with that anyone?
>>
>>Thanks,
>>
>>Scott M.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform