John,
The following command will set the field "MyField" in the view "MyView" as a key field for the view:
=DBSETPROP('MyView.MyField','Field','KeyField',.T.)
Of course, the key expression in this example is very simple. I'm not sure complex expressions like you show are allowed to be used as update keys in views. Are you able to set this like you want in the view designer?
Mark
>I can't quite figure out the syntax for the dbsetprop() command to set the key field. I've tried these commands with no luck. Any ideas?
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.