Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Alias does not exist
Message
De
25/04/2022 15:49:22
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01684254
Message ID:
01684261
Vues:
42
Hi Dmitry,

>> cControlSource = ALLTRIM( this.control_source )
>> IF EVALUATE( cControlSource ) == OLDVAL( cControlSource )
>> RETURN .T.
>> ENDIF
>>

The parameters for OLDVAL are
OLDVAL(cExpression [, cTableAlias | nWorkArea])
where cExpression would be your field name and cTablealias the cursor or table-

So that to pass a controlsource like myalias.myfield you'd be looking to use getwordnum() or similar to peel out cTablealias and field name/s separately.
if evaluate(cControlsource)=iif("." $ cControlsource,oldval(getwordnum(cControlsource,2,"."),getwordnum(cControlsource,1,".")),oldval(cControlsource))
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform