This last post corrected the problem. Thank you very much for all those suggestions.
However, I'm experiencing a new issue. This code is actually for a Rich Text DW(don't know if this matters or not, but I thought I would mention it). The modify() is done for each row after the DW is retrieved. The first row for some odd reason does not display the value( value of ls_value after the modify() ). But all other rows, 2 through x, displays the value OK. Why would it work for all other rows, but not the first row? All my code for this exists in a user object function, not in any of the DW scripts/events.
How my DW displays each row:
I have a button on the window which performs getting/displaying the first, last, next and previous rows. So, my DW does not display all the rows retrieved to the user all at once. I'm using PB6.5 . I've tried using accepttext() after each modify in my loop for going through all the rows. This does not seen to help. I'm not getting any DW errors on the first row. So, I'm confused at this point why this is happening.