Kbase P12134: ERROR 51 FIND - instruction with a user defined function.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/03/2003 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.1B
SYMPTOM(s):
ERROR 51 FIND - instruction with a user defined function.
Calling a function within a where clause results in error 51.
e.g. FIND FIRST tablename WHERE field1 = DYNAMIC-FUNCTION(funcname, "XXX") AND
field2 = variable.
FIX:
Replacing the variable with a literal resolves the issue. e.g.
FIND FIRST tablename WHERE field1 = DYNAMIC-FUNCTION(funcname, "XXX") AND
field2 = "YYY".