none
Loop do not ending

    Question

  • Hi evrybody,

    in program QFN976 begin at line 28 a loop (for / endfor). This loop do not ending.

    I will binding 2 lddataviews.

    Please help me.


    Best Regards Martin


    • Edited by martmen Sunday, January 08, 2017 9:58 PM
    Sunday, January 08, 2017 9:56 PM

Answers

  • Probably OnDataViewCellValueChanged being called when a cell value changes and then DataViewSetValue changing it again so infinite loop.

    Add to Textwindow.Writelines to see how it happens, QFN976-0

    • Marked as answer by martmen Tuesday, January 10, 2017 8:58 AM
    Sunday, January 08, 2017 10:13 PM
    Moderator
  • Show JXN445 with corections LDV = LDControls.LastDataView.


    Best Regards Martin

    • Marked as answer by martmen Tuesday, January 10, 2017 8:57 AM
    Tuesday, January 10, 2017 8:57 AM

All replies

  • Probably OnDataViewCellValueChanged being called when a cell value changes and then DataViewSetValue changing it again so infinite loop.

    Add to Textwindow.Writelines to see how it happens, QFN976-0

    • Marked as answer by martmen Tuesday, January 10, 2017 8:58 AM
    Sunday, January 08, 2017 10:13 PM
    Moderator
  • Show JXN445 with corections LDV = LDControls.LastDataView.


    Best Regards Martin

    • Marked as answer by martmen Tuesday, January 10, 2017 8:57 AM
    Tuesday, January 10, 2017 8:57 AM