Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table.field question
Message
 
 
À
17/07/2001 21:28:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00531816
Message ID:
00531827
Vues:
10
The OLDVAL() only works for fields that have been modified but not updated in a Visual FoxPro table or cursor that has row or table buffering enabled with CURSORSETPROP( ). See help for details.

>Sergey:
>
>I was trying to do this becuase;
>
>After I did REPLACE Test.SomeField1 WITH .F.
>? OLDVAL("Test.Field1")
>.... it displayed .F. ... instead of the old value .T.
>
>Does OLDVAL() not work in the Command windows?
>
>Mal
>
>>< SNIP >
>>>Test.SomeField1 = .T.
>>>
>>>I get an error "Object TEST is not found".
>>>
>>>Why is that?
>>>
>>>TIA
>>>
>>>Mal
>>
>>You cannot assign value to the table field like that. You have to use REPLACE or UPDATE - SQL to modify the table field. Therefore expression
Test.SomeField1 = .T.
is interpreted as assigment of .T. value to the property SomeField1 of the Test object wich doesn't exist.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform