Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CURVAL () ---really works???
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
CURVAL () ---really works???
Miscellaneous
Thread ID:
00429072
Message ID:
00429072
Views:
42
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

Next
Reply
Map
View

Click here to load this message in the networking platform