Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tricky problem
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Tricky problem
Miscellaneous
Thread ID:
00635856
Message ID:
00635856
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform