Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tricky problem
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Tricky problem
Divers
Thread ID:
00635856
Message ID:
00635856
Vues:
52
Hi everybody,

We have the following tables:
Methods:
MethodID MethodCode

Messages
MessageID MethodID Message Severity

ValCalls
ValCallID Table      Field    CallProc                  ShowFields           BldMStr(L) BldMstrP(L)  
1         PropMstr            ProMstrTr(field1,field2)  Field1,Field2,Field3
2                     Owner1  Name(Owner1)              Field1,Field2
These are methods for table rule and fields rule. And here is the problem:
The same method could be run for the same table, but with the different combination of fields, and of course, different combination of Show Fields.

So, the question is:
How can we identify, which particular ShowFields are associated with each error?

The typical method's code looks like:
lparameter pcValue, pcFieldName (or combination of fields)
if some error condition
   return EvalCode(MessageID, pcFieldName)
endif

return .t.
Can you please help me with ideas of solution for this problem...

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform