Search found 536 matches
- 29 Jan 2015 17:35
- Forum: Scripts
- Topic: [script] Simple Backup System for RJ TE
- Replies: 4
- Views: 15736
[script] Simple Backup System for RJ TE
Thanks to Rickard's fantastic support for script development (and his terrific editor in general!), I am now able to present quite elaborated script for backing up your source files, hoping you will find it useful. Goal of Simple Backup System for RJ TextEdit (SBS) is to store, depending on your con...
- 26 Jan 2015 18:23
- Forum: Scripts
- Topic: How do I use SaveToFile in order to...?
- Replies: 4
- Views: 16033
Re: How do I use SaveToFile in order to...?
This is truly great! Thank you! So, I will finally be able to complete my handy (I hope so) script.
- 26 Jan 2015 14:25
- Forum: Scripts
- Topic: How do I use SaveToFile in order to...?
- Replies: 4
- Views: 16033
Re: How do I use SaveToFile in order to...?
Thanks a lot! Alas, your code for reading (and also writing) stream doesn't work for me: I get "Not enough actual parameters" error on this line: int len = Length(s); When I change int to var (since it's JavaScript, not Delphi), or simply comment out this line, I get "Incompatible typ...
- 26 Jan 2015 12:54
- Forum: Scripts
- Topic: How do I use SaveToFile in order to...?
- Replies: 4
- Views: 16033
How do I use SaveToFile in order to...?
1. SaveToFile adds newline at the end of the saved file -- is it intentional? How can I not write this newline? 2. I understood, perhaps erroneously, that it would be possible to save strings as ANSI, UTF-8 and even UTF-16; is it in fact possible now? How do I do this? Please take your time; I don't...
- 26 Jan 2015 12:08
- Forum: Scripts
- Topic: How do I read from a file?
- Replies: 2
- Views: 13231
Re: How do I read from a file?
Thanks a lot for your prompt reply! The JS method works alright :D
- 26 Jan 2015 08:52
- Forum: Scripts
- Topic: How do I read from a file?
- Replies: 2
- Views: 13231
How do I read from a file?
I want to read from (ANSI) file; how do I do it? I tried var text = WStrings.LoadFromFile("filename.txt"); but then ShowMessage(text); displays a number (always the same: 151894672) and not file content. Perhaps it's a bug? Then I tried opening the file with MainApp.OpenFile and then using...
- 23 Dec 2014 13:46
- Forum: News
- Topic: Merry Christmas 2015
- Replies: 1
- Views: 12749
Re: Merry Christmas 2015
Merry Christmas, Rickard! Merry Christmas, guys!
- 17 Oct 2014 09:33
- Forum: Scripts
- Topic: Need a few examples, please
- Replies: 8
- Views: 21114
Re: Need a few examples, please
Document.Line doesn't contain newline -- it can be found out with this oneliner, which shows number of characters in a string (first line of document): ShowMessage(length(Document.Lines[0])); Therefore your way will never work: there are simply no abcdefg<new line> in the document, only abcdefg . In...
- 15 Oct 2014 10:39
- Forum: Syntax files
- Topic: CLIPPER and xBase
- Replies: 3
- Views: 15295
Re: CLIPPER and xBase
I guess PM-ing OP will be much more efficient way to get this file... Just sayin'.
- 13 Oct 2014 09:47
- Forum: Scripts
- Topic: REGEX "Problem"
- Replies: 5
- Views: 17550
Re: REGEX "Problem"
Could you paste a script sample that doesn't work for you?
- 26 Jul 2014 17:05
- Forum: Scripts
- Topic: WideString array problem
- Replies: 2
- Views: 13084
Re: WideString array problem
This is my second take at your problem; before I focused on Pascal grammar (which I recall very, very vaguely), found nothing and hoped Rickard would come to help (after all, RJ TE is coded in Borland.) This time I took different approach. Sooo... 1) no "type" definition in any of sample s...
- 10 Jul 2014 08:48
- Forum: News
- Topic: 64 bit version and Delphi XE6...
- Replies: 2
- Views: 14437
Re: 64 bit version and Delphi XE6...
These are superb news and what I really like about your wording is that it is "we" who get those compilers :) Yet another sign of your grandeur. Just to try it out I did manage to compile the converter tool in both 32 and 64 bit versions http://www.rj-texted.se/downloads/Converter.zip . I ...
- 03 Jun 2014 09:36
- Forum: Scripts
- Topic: [script] Switch case (like in MS Word)
- Replies: 0
- Views: 10613
[script] Switch case (like in MS Word)
This is not my aforementioned backup script, but a little one that may come in handy, though. It switches case from lower case to UPPER CASE to Name Case, like in MS Word, so you need only one keyboard shortcut. If nothing is selected, word under cursor is selected automatically (again like in MS Wo...
- 16 Apr 2014 15:01
- Forum: Scripts
- Topic: Help with script
- Replies: 6
- Views: 18703
Re: Help with script
You are very welcome! I'm glad I could help
- 16 Apr 2014 11:53
- Forum: Scripts
- Topic: Small bug in doc (function return)
- Replies: 0
- Views: 10240
Small bug in doc (function return)
For ScriptUtils.RegExPos (and for other similar functions) the doc states: If nothing is found, the function returns 0 (zero). In fact it is -1, not 0, as I just learnt: for (var i = 0; i < Document.LineCount; i++) { x = ScriptUtils.RegExPos("^\\s+", Document.Lines[i], exp); ShowMessage(x)...