>I have a combo box in a grid. The grid displays a parameterized view.
>
>The combobox works fine, except when "*OTHER" is choosen by a user. In the valid method of the combobox, I run a modal form which then lets the user type a value into a text box. The value is returned correctly, but when I do a "replace" to put the value into the field in the view, it doesn't change the value. The value of the field stays as "*OTHER".
>
>It is almost as if the REPLACE command isn't excuted.
>
>Note:
>- if I remove the call to the other form, the replace works (I used a constant to test this)
>- the value returned from the form is good
>- the line after the call to the form is executed (I tested this by putting a print statement after the DO FORM line)
>- the debugger shows that the field always keeps the value "*OTHER"
>
>Any ideas?
There is common feature/bug related to REPLACE. Generally, to make things clear you should use SELECT work area before REPLACE.
Edward Pikman
Independent Consultant