Hi majlumbo
Many thanks for the reply, I did just as you suggested and found the problem. I’m almost too embarrassed to say but all the test programs I tried had only three panels! Yet the loop tried to find six.
It’s a good job I don’t have to earn a living as a programmer :)
Hi Glenn999
Thanks to you both for your ideas and explanations. It seems that I have asked a similar question as before although that was not my intention. I am trying to expand the functionality of my app by gaining from the advantages outlined in the other thread.
I would like to have added...
Thanks for the reply. Opening and saving the file is not my problem. Once the file is opened I then want to
process the file but without accessing the richedit (like the routine below ), in other words, process the file
'behind the scenes' and update the richedit when finished.
Rereading my...
Hi
I am working on a program to perform various alterations and calculations on CNC Gcode.
The problem I'm having is how to start an operation on an existing file, after the file is opened and displayed in a TRichEdit.
Id like to use 'in memory' processing instead of reading each line of the...
Glenn, well I must say, I'm very impressed.
With Wrapper 20,000 lines took 33 seconds, with your code only 150 milliseconds, and a file with just over half a million lines (10.7 mb) took just 1909ms !
I disagree, with the help you've given I believe I'll learn an awful lot.
I'm beginning...
Glenn9999, Yes I would be very interested to see how you'd approach this.
DjangMan, When I said I'm just a beginner I wasn't kidding! I've not looked at database use yet, although the next project I have in mind will. So I'll keep your suggestion in mind. Thanks
I can't thank you enough for the time you have spent with this.
Sorry, I'm loading the file into a Richedit and performing some simple functions as it comes in to simplify processing.
procedure TForm1.FileOpen1Accept(Sender: TObject);
var
BlockCount: integer;
begin
Tempfilename :=...
First of all, a big thanks to you both for taking an interest in my little app. I'll report on your recommendations as best as I can in the order I understood them.
Yep that 'else' was a mistake.
I have not come across a DWord before, using your code I can now display the elapsed time in a...
Thanks for the reply. Yes performance, or lack of, is my concern. If I convert a file with 20,000 lines it takes about 30 seconds so I would hope that a file with 60,000 lines will take 3 times as long, yet it actually takes about 6mins 30s and a file with over 100,000 lines seems to lock up the...
Hi everyone. I have an app that converts values in a text file (cnc gcode) displayed in a Richedit. The program works ok except that every time the program is run there is a noticeable drop in speed. Also the larger the file the worse the problem. i.e. 61000 lines take 6mins 30s and 87000 take...
Hi
I've built a simple VCL that modifies a line of text (CNC G-Code) and displays result in a label. Now that the code is working ok, I want to use the same code to modify a g-code file loaded into a tmemo.
I am having some trouble wih this. How do I get the program to move line by line through...
Thanks for your time with this.[smile] Won't compile for me as is, but I've now got a direction to follow.
I'll need to spend some time to try and get my head around this.[dazed]
I'm just not seeing this at all. I sort of get the idea of using sets but the more i try the worse it gets.
Here's my latest failure.
Every attempt yields yet more Incompatible types errors.
In need of some real help here to get over this mental block. Thanks.
procedure...
Hi
I want to write a program to convert CNC GCode files.
My problem is this;
From the following code; N230G01X78.54Y34.75f300.
I need to extract the letter X and the numbers 78.54, change X to B, perform a calculation and then pass back to the origional string.
To get this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.