Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aerror() Does not return expected values ?
Message
 
 
To
15/12/1997 00:41:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00065869
Message ID:
00065911
Views:
35
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 ??????
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform