Joe, I created a test in foxpro 2.6 with a READ VALID clause that set the _curobj to an object and made the valid return false. It worked. Is there any code in the field's WHEN clause that may make it return false?
I also traced the code and you are correct. The _CUROBJ value does not change after the _CUROBJ = 1 statement. But it does change once the function is exited. Not sure why this is... I also noticed when tracing the program that it kept looping through the read valid clause.
-mike
>Doing a objvar(fildvar) and objnum(filed) and SHOW GETS didn't work either.. I traced through my code with _CUROBJ in the debug window.. and when it hit the part of the code that says:
>_CUROBJ = 1
>
>it didn't change. the value of _CUROBJ stayed 36 even though FPW executed the line "_CUROBJ= 1" without error. I give up!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement