[Progress Communities] [Progress OpenEdge ABL] Forum Post: Unexpected behaviour of find-first on dynamic buffer

  • Thread starter Thread starter keesvlasblom
  • Start date Start date
Status
Not open for further replies.
K

keesvlasblom

Guest
Hi all, Maybe it has come up already in another post but I could not find it. I noticed some unexpected behaviour in a find-first on a dynamic buffer with a where clause checking on a character field. If this field contains a linefeed the find will always fail. I've attached some sample code below. Anyone else noticed this and can explain this or has found a workaround? Regards Kees Vlasblom DEFINE TEMP-TABLE ttTest NO-UNDO FIELD cTest AS CHARACTER. DEFINE BUFFER bttTest FOR ttTest. DEFINE VARIABLE hb AS HANDLE NO-UNDO. CREATE ttTest. ASSIGN ttTest.ctest = "abcd~nefgh". FIND FIRST ttTest. FIND FIRST bttTest WHERE bttTest.ctest = ttTest.cTest NO-ERROR. CREATE BUFFER hb FOR TABLE "ttTest". hb:FIND-FIRST(SUBSTITUTE("WHERE cTest = '&1'", ttTest.cTest)) NO-ERROR. MESSAGE AVAIL bttTest hb:AVAIL VIEW-AS ALERT-BOX INFORMATION BUTTONS OK. /* message will show: yes no */

Continue reading...
 
Status
Not open for further replies.
Back
Top