Forum Discussion
Abramova
14 years agoStaff
Hi,
Robert is right. In your case, it is better to use the approach Robert recommended.
As for your original problem with the aqTextFile.SetPosition method, the method returns False as you try to set position to the non-existent element - the element with indexes (line, aqTextFile.LineLenght(line)+1):
…
var lLength = myFile.LineLength(line) + 1;
if (myFile["SetPosition"](line, lLength))
…
By using the SetPosition method, you can only move the cursor position to the existing element in the document, that is, the element with indexes (Line, Column), where Line can be specified from the range 0…aqTextFile.LinesCount-1, Column - from the range 0…aqTextFile.LineLength(line)-1.
Related Content
- 18 days ago
- 4 years ago
- 9 years ago
- 6 years ago
Recent Discussions
- 20 hours ago