(no subject)

Page 1.0 of 1.08
  • i-campbell

    i-campbell - 2020-07-06

    if i is a DINT you can use __XADD(ADR(i) , 1) for i++

     

    Last edit: i-campbell 2020-07-06
    • Ingo

      Ingo - 2020-07-06

      Nice idea! Actually I already thought of inventing a runtime library
      (emscripting is doing it similar). Then I could pass the variable by
      reference, to increment it, and return the old value as a result.

      But would this work with an Any-Type? Because in the place where I get the
      operator I don't know the datatype. Not sure, yet.

      BR,
      Ingo

       

Log in to post a comment.