home *** CD-ROM | disk | FTP | other *** search
- export int GotoBookMark(int num)
- {
- string book;
- int x, y;
-
- book=joinstr("BookMark_y", ltostr(num));
- y=ReadInfo(book);
- if (y) {
- book=joinstr("BookMark_x", ltostr(num));
- x=ReadInfo(book);
- GotoLine(y, x);
- } else
- ReturnStatus("No book mark stored!");
-
- }
-
- export int SetBookMark(int num)
- {
- string book;
-
- book=joinstr("BookMark_y", ltostr(num));
- SetInfo(-1, book, ReadInfo("line"));
- book=joinstr("BookMark_x", ltostr(num));
- SetInfo(-1, book, ReadInfo("byte_position"));
-
- }
-
- {
- int counter;
- string book, key;
- for (counter=1; counter<=10; counter++) {
- book=joinstr("BookMark_y", ltostr(counter));
- ConstructInfo(book, "", "", "ILH", "", 0, 0);
- book=joinstr("BookMark_x", ltostr(counter));
- ConstructInfo(book, "", "", "ILH", "", 0, 0);
-
- key=joinstr("'F", ltostr(counter), "'");
- AssignKey(joinstr("GotoBookMark(", ltostr(counter), ");"), key);
- key=joinstr("'F", ltostr(counter+10), "'");
- AssignKey(joinstr("SetBookMark(", ltostr(counter), ");"), key);
- }
- }
-
-