Search found 1045 matches

by Rickard Johansson
10 Mar 2015 21:26
Forum: News
Topic: Home page and forum moved to new web host
Replies: 1
Views: 12955

Re: Home page and forum moved to new web host

I forgot to backup your files uploaded to this forum. Sorry about that. There may be an avatar missing as well...
by Rickard Johansson
10 Mar 2015 00:11
Forum: News
Topic: Home page and forum moved to new web host
Replies: 1
Views: 12955

Home page and forum moved to new web host

I've moved the forum and the RJ TextEd site to a new web hosting provider. Hopefully it will solve a few issues, especially with the slow forum speeds.
by Rickard Johansson
09 Mar 2015 15:03
Forum: News
Topic: DDOS attacks and slow forum
Replies: 0
Views: 10335

DDOS attacks and slow forum

My web hosting provider is under DDOS attack and has been for a few days now. Because of this the forum is sometimes very slow and hard to access.

I'm considering moving my home page and forum to a different web host...
by Rickard Johansson
26 Jan 2015 17:25
Forum: Scripts
Topic: How do I use SaveToFile in order to...?
Replies: 4
Views: 15299

Re: How do I use SaveToFile in order to...?

This code will work in v10.20. { String s = ""; string sz = "C:\\Test.txt"; var size = FileSize(sz); if (FileExists(sz)) { Word mode = fmOpenReadWrite; TFileStream stream = TFileStream.Create(sz, mode); try { s = stream.ReadString(size, encAnsi); s = s + "This text is append...
by Rickard Johansson
26 Jan 2015 13:14
Forum: Scripts
Topic: How do I use SaveToFile in order to...?
Replies: 4
Views: 15299

Re: How do I use SaveToFile in order to...?

Maybe streams are are a better choice. I've fixed the issues and I'll release v10.20 beta in a few days. I've also made some updates to the help file. You could use // Read an UTF8 file to a string. WORD mode = fmOpenRead; TFileStream stream = TFileStream.Create("C:\\Test.txt", mode); try ...
by Rickard Johansson
26 Jan 2015 11:56
Forum: Scripts
Topic: How do I read from a file?
Replies: 2
Views: 12491

Re: How do I read from a file?

You could try:

Code: Select all

TStringList list = TStringList.Create;
try
  list.LoadFromFile("C:\\Test.txt");
  var text = list.Text;
  ...
finally
   list.Free;
end;
or

Code: Select all

WStrings.LoadFromFile("filename.txt");
var text = WStrings.GetText;
I'll look into the stream issue.
by Rickard Johansson
23 Dec 2014 09:54
Forum: News
Topic: Merry Christmas 2015
Replies: 1
Views: 12103

Merry Christmas 2015

Image
Merry Christmas everyone!
by Rickard Johansson
01 Nov 2014 11:46
Forum: Scripts
Topic: Simple script - works slightly differently with RJTE upgrade
Replies: 3
Views: 14298

Re: Simple script - works slightly differently with RJTE upg

I've made a couple of changes in v10 (beta 1) that may help. The "Clipboard" object enables access to the Windows clipboard. Ex. String s = Clipboard.AsText; ... Clipboard.AsText = s; I also added an argument to the close function. bool Document.Close(bool bDiscardChanges = false); If you ...
by Rickard Johansson
10 Jul 2014 17:58
Forum: News
Topic: 64 bit version and Delphi XE6...
Replies: 2
Views: 13745

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. Well, it does benefit us all. Right 8) Btw my Comodo AV gives me warning about 32-bit file, purportedly containing ApplicUnwnt.Win32.Hoax.ArchSM...
by Rickard Johansson
08 Jul 2014 18:37
Forum: News
Topic: 64 bit version and Delphi XE6...
Replies: 2
Views: 13745

64 bit version and Delphi XE6...

I've upgraded my Delphi 2007 version to Delphi XE6. This means we get a 32-bit and 64-bit compiler, a huge number of new components, native Unicode support... Converting the entire project will take some time, but it does give me an opportunity to clean up some things... It may take a month or two t...
by Rickard Johansson
11 Jun 2014 09:36
Forum: Syntax files
Topic: Quote characters in HTML text blocks
Replies: 2
Views: 13071

Re: Quote characters in HTML text blocks

Are you creating your own highlighter? If so, could you post it?

If you're not creating your own highlighter, is it a plain HTML file? I can't reproduce your issue using the few lines you've posted.
by Rickard Johansson
16 Apr 2014 11:30
Forum: Scripts
Topic: Help with script
Replies: 6
Views: 17928

Re: Help with script

Try this // C++ script { string s; int i,n; int startx,startLine,endx,endLine; if (Document.SelLength > 0) { Document.GetSelection(startx,startLine,endx,endLine); } else { startLine = 0; endLine = Document.LineCount - 1; }; Document.BeginUpdate(); try { i = startLine; while (i <= endLine) { // Get l...
by Rickard Johansson
26 Mar 2014 11:10
Forum: Scripts
Topic: Numeric base translator
Replies: 5
Views: 17508

Re: Numeric base translator

I implemented a different solution. Instead of replacing all components I simply made some changes to the event handlers. E.g. void KeyPress(TObject sender, char key) => void KeyPress(TObject sender, int key) void KeyPress(TObject sender, int key) { int base = 10; string name = TEdit(sender).Name; i...
by Rickard Johansson
26 Mar 2014 09:49
Forum: Scripts
Topic: Numeric base translator
Replies: 5
Views: 17508

Re: Numeric base translator

Made some minor changes. It still doesn't work properly yet. The editor component (TEdit) use ANSI while the script engine use Unicode. I need to replace all the components for events like entDecimal.OnKeyPress = &KeyPress; to work. I had to comment out some events for the script to work below. ...
by Rickard Johansson
23 Feb 2014 14:50
Forum: Scripts
Topic: Convert between HTML entities and special characters
Replies: 3
Views: 15515

Re: Convert between HTML entities and special characters

It's been fixed in the next release. Thanks!