Hi,
I think, the "and" is correct.
I did a simple test:
- Create a new project
- Add a SynEdit (configure the images to bookmarks) component and two buttons
- In onclick the first button use this code:
SynEdit1.ExecuteCommand(ecSetMarker9, #0, nil);
- In onclick the second button use this code:
SynEdit1.ExecuteCommand(ecToggleMarker9, #0, nil);
Now run the project.
To simulate the situation do this:
- Create 10 lines in the synedit
- Click in line 2 and click the first button (SetMark) (will show the mark "9")
- Click in line 5 and click the second button (toggleMark) (the mark "9" will moved to this line)
If you change the "or" to "and" and repeat the simulation, when you click the second button the mark "9" will clear.
Regards,
Luciano