I found, since I posted the initial message, that the OLDVAL() works without the alias. That is, I can use:
OLDVAL( field_name)
And in my initial test the above works. I just need to do more tests to be sure that the above OLDVAL() actually uses the current form CA alias and not some other. Because the same field name could be in more than one CA aliases.
As to your questions, I don't know how to get "YourCA" value.
Thanks.
>I don't use CA, but I use Help frequently. May I guess YourCA.Alias?
>
>>Hi,
>>
>>On a typical form of my VFP 9 application, at design time, I drop various textboxs (this is simplified). The class of the "textbox" has a method .Validate(). This method has to check if the value in the field has been changed. I can easily get the current value in the text box. But I also need to find the OLDVAL() in this textbox. To do so, I would need the alias name of the CA (Cursor Adapter) for this particular form.
>>Could you suggest a generic way to get the alias name of the CA, on any form, for a textbox?
>>
>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham