Hi guys. I want to use action (button) on my header page to delete all lines that satisfy that value of a field is, for example, "1". For example I have some lines Int....1....34589.... Int.....4....56764... Text...1....64776... And I want to delete those that have value "1" in second field. How to do this
Linetable.SETRANGE(Second Field, Value 1);//Add all specific filters with tje Order No and all
Linetable.FINDSET
REPEAT
Linetable.DELETE;
UNTIL Linetable.NEXT=0;
Answers
Linetable.SETRANGE(Second Field, Value 1);//Add all specific filters with tje Order No and all
Linetable.FINDSET
REPEAT
Linetable.DELETE;
UNTIL Linetable.NEXT=0;
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
...the above code assumes the the field is called "Second Field" and is a numeric field, e.g. Integer or Decimal