Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLDVAL Function
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Miscellaneous
Thread ID:
01370898
Message ID:
01370900
Views:
11
After you did tableupdate the OLDVAL() is no longer available.

See OldVal function

In other words, move OLDVAL at the very top of your code (after LPARAMETERS).

>Hi all,
>
>I try to use OLDVAL Function but it return Null value !
>
>Why ?
>http://www.amline.be/UT_DOC/Oldval.png
>
>
>Thank in advance for help
>
>BHT
>
>
>LPARAMETERS tlAllRows, tlForce
>
>LOCAL lValue,;
> lnretval
>
>lnretval = DODEFAULT()
>DO ZZ
>
>
>IF lnretval = FILE_CANCEL
> lValue = OLDVAL("icboan", "v_FinancementInami")
> WAIT WINDOW lValue
> IF v_FinancementInami.icboan <> lValue
>  REPLACE v_FinancementInami.icboan WITH lValue IN v_FinancementInami
> ENDIF
> THIS.REFRESH()
>ENDIF
>
>RETURN lnretval
>
>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform