Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CURVAL () ---really works???
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
CURVAL () ---really works???
Divers
Thread ID:
00429072
Message ID:
00429072
Vues:
41
Hi people...
Im trying to use the CurVal() and OldVal() functions and they make me crazy because dont work as im espected...
in te help there is this example:
*-------------------------------------------------------------------
CLOSE DATABASES
CLEAR
CREATE TABLE mytable FREE (cDigit C(10))
INSERT INTO mytable (cDigit) VALUES ('One')
SET MULTILOCKS ON && Allow optimistic table buffering
= CURSORSETPROP('Buffering',5) && Optimistic table buffering on
REPLACE cDigit WITH 'Two' && New value
? "Current value: " + CURVAL('cDigit', 'mytable')
? "Old value: " + OLDVAL('cDigit', 'mytable')
= TABLEUPDATE(.T.) && Commit changes made to table
? 'Table changes committed'
? 'New current value: ' + CURVAL("cDigit", "mytable")
? 'New old value: ' + OLDVAL("cDigit", "mytable")
*--------------------------------------------------------------------
Ok if you execute this portion of code in the command window you maybe expect to have prited in your screen two differents values from the 'current value' and 'old value' but it doesnt works to me and other workmates, i 've been forgotten some setting or somethig???
I will appreciate if any of you can explain to me why this dont work to me...
thanks in advance

Ariel Gimenez

our power is our knowledge

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform