Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLDVAL Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01370898
Message ID:
01370900
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform