Web Connection
CopyObjectProperties - code for lcPropertyExclusionList
Gravatar is a globally recognized avatar based on your email address. CopyObjectProperties - code for lcPropertyExclusionList
  Matt Slay
  All
  Mar 6, 2017 @ 02:15pm

Rick - in wwUtils.prg you have a function CopyObjectProperties() which accepts a parameter for lcPropertyExclusionList. However, your logic for skipping the fields in this passed list is incorrect.

Bad code:

*** Ignore stock properties
IF AT("," + lcField + ",", "'" + ;
      lcPropertyExclusionList) > 0
   LOOP
ENDIF

Correct code:


*** Ignore stock properties
IF AT("," + lcField + ",", ;
      "," + Alltrim(lcPropertyExclusionList) + ",") > 0
  LOOP
ENDIF

The correct code adds a comma to each end of lcPropertyExclusionList, whereas your original code, for some reason, simply added a sinqle quote to the beginning of lcPropertyExlcusionList.

Please accept my suggested change.

(Applies to Web Connection and Client Tools)

Gravatar is a globally recognized avatar based on your email address. re: CopyObjectProperties - code for lcPropertyExclusionList
  Rick Strahl
  Matt Slay
  Mar 6, 2017 @ 03:16pm

Thanks Matt,

Fixed.

© 1996-2024