[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Adding a case sensitive field to a dynamic temp-table

Status
Not open for further replies.
S

Stefan Drissen

Guest
But it gets even better - case-sensitive is the new gift that keeps on giving. There is a difference between the handling of hb:cc and hb:buffer-field( "cc" ):buffer-value - as in real life, it never pays to take shortcuts [8-|] define temp-table tt field cc as char case-sensitive . create tt. tt.cc = "Hi". message tt.cc = "Hi" compare( tt.cc, "=", "Hi", "case-sensitive" ). message tt.cc = "hi" compare( tt.cc, "=", "hi", "case-sensitive" ). def var ht as handle no-undo. def var hb as handle no-undo. create temp-table ht. ht:add-like-field( "cc", "tt.cc" ). ht:temp-table-prepare( "tt" ). hb = ht:default-buffer-handle. hb:buffer-create(). hb::cc = "Hi". message hb::cc = "Hi" compare( hb::cc, "=", "Hi", "case-sensitive" ). message hb::cc = "hi" compare( hb::cc, "=", "hi", "case-sensitive" ). message hb:buffer-field( "cc" ):buffer-value = "hi" compare( hb:buffer-field( "cc" ):buffer-value, "=", "hi", "case-sensitive" ).

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