Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aerror() Does not return expected values ?
Message
 
 
À
15/12/1997 00:41:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00065869
Message ID:
00065911
Vues:
30
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform