Forum Post: bug with longchar

  • Thread starter Thread starter jmls
  • Start date Start date
Status
Not open for further replies.
J

jmls

Guest
progress 11.3.1 I was writing some code using test-driven development, and was trying to fix a failing test, when the test in question refused to pass, as the returned result was always "". What basically is happening is that the return for a longchar is always blank given this code. It's fine for other datatypes such as char, date etc. I presume that this is a bug - could someone test and check it on different versions of progress ? have a look at this class (it's much simplified, but still shows the error) class temp.foo: method public char notfoo(): def var lv_data as char no-undo. assign lv_data = "data". return lv_data. finally: return lv_data. end finally. end method. method public longchar bar(): def var lv_data as longchar no-undo. assign lv_data = "foobar". return lv_data. finally: return lv_data. end finally. end method. end class. now run this procedure def var a as temp.foo no-undo. a = new temp.foo(). message string(a:notfoo()) view-as alert-box. message string(a:bar()) view-as alert-box.

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