Delete all lines that satisfy condition?

TiwazTiwaz Member Posts: 98
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 :(

Best Answer

Answers

  • guidorobbenguidorobben Member Posts: 157
    edited 2016-10-04
    use a SETRANGE on second field. See the delete of table 36.
  • SowkarthikaSowkarthika Member Posts: 102
    You can code your requirement in the Page Action. If you want more details, then elaborate more on your requirement.
  • RockWithNAVRockWithNAV Member Posts: 1,139
    Write something like 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;

  • TiwazTiwaz Member Posts: 98
    Thank you for your help! :D
  • Jan_VeenendaalJan_Veenendaal Member Posts: 206
    edited 2016-10-05
    oops, sorry.
    Jan Veenendaal
Sign In or Register to comment.