Xavier,
It's a bug. If the Message field in the DBC is left blank you can parse aerror[3] to get the field name.
aerror( laError )
if ( laError[1] = 1582 )
local lcField
lcField = substr( laError[3], at( ' ', laError[3] ) + 1 )
lcField = lower( this.mcTable + "." + left( lcField, at( ' ', lcField ) - 1 ) )
>My error procedure make use of the aerror(). In order to identify the field an return the focus to the right control I read the Array created with Aerror and get the following
>
>1=> 1582 (error number)
>2=> "Invalid partno" (text from message in table design)
>3=> "Invalid partno" (text from message in table design)
>4=> 2 (Work area)
>5 ... 7 => .Null.
>
>I was expected in position 3 the field name, what is wrong ??????