Tips and Frequently Asked Questions

 Saving/Loading compile code for scripter projects


When using standard Scripter component with a single script, you just need to call SaveCodeToFile and LoadCodeFromFile methods of scripter component to handle compiled code. When it comes to multi-script project using the Scripter Studio Pro engine, you must write extra code and save compiled code of all units (scripts). It's the same for loading: you must load compile code of all units. This is a pseudo-code example for saving compiled code:
for c := 0 to IDEEngine1.Files.Count - 1 do
begin
  if not IDEEngine1.Files[i].Script.Compiled then
    IDEEngine1.Files[i].Script.Compile;

  AUnitName := IDEEngine1.Files[i].Script.ScriptInfo.UnitName;
  IDEEngine1.Files[o].Script.SaveCodeToFile(ABasePath + AUnitName + '.code');
end;
To load the code, you just do the reverse. Pay attention to add directories to the search path where the compiled code is located, because scripter tries to load the compiled code for used units on the fly (if you load Unit1 and it uses Unit2, it tries to load Unit2 code by searching files in search path). Example:
with IDEScripter1 do
begin
  {By setting the LibOptions properties below, you just need to load the script code for the main unit}
  LibOptions.UseScriptFiles := true;
  LibOptions.SearchPath.Add(SomeSearchPath);
  LibOptions.CompiledFileExt := '.code';

  Scripts.Clear;
  {Load main unit only - the other units will be loaded on the fly based on the LibOptions settings}
  AddScript(slPascal).LoadCodeFromFile(ABasePath + MyMainUnitName + '.code');
  Execute;
end;


Pricing

Single Developer License Small Team License Site License
 

TMS Scripter


€ 190

60 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
MOST POPULAR

TMS BIZ Premium


€ 595

180 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
check  TMS Scripter
check  All TMS BIZ products
more_horiz  Discover more
BEST VALUE

TMS ALL-ACCESS


€ 1,795

595 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
check  TMS Scripter
check  All TMS BIZ products
check  All TMS products
more_horiz  Discover more
All prices excl. VAT. Renewal price is subject to change and only valid up to 30 days after license has expired. After renewal period a discount price is offered to renew the license.

TMS ALL-ACCESS

key
Your unlimited access to all TMS products
local_offer
One money and time saving bundle

Free Trial

Start a free TMS Scripter evaluation today!
RAD Studio

What our customers say

Sorry to say that I regret about my Scripter purchase. I mean, I regret that I didn't purchase it before ;-) I implemented the routine I needed in my application in less than 4 hours, thanks to the excellent examples in documentation and available features. I'm even "scared" because everything worked in the very first time and every time this happens there is something really wrong "hidden" that only shows up when the application is running at the customer (one of the Murphy's Law). Congratulations.

- Natali Junior Samuel

I fell in love with this great product, it changed my opinion and my vision in programming. I am using it at least 12 hours per day and everyday I understand what a clean code you have used to make it ...thanks a lot.

- Mehrdad Esmaili

We have been using TMS components in our software development for almost 30 years. Throughout this time, we have consistently experienced friendly and high-quality service. Problems are not simply dismissed with the words "no error found," but rather, solutions are actively sought in collaboration with the customer. The components are well-designed and highly configurable to meet individual needs. We have also found TMS to be a reliable partner in custom development projects.

- Holger Hanschmann

Excellent components, enhances and improves the end product. Support is excellent. Reply promptly and always have an answer or fix, something which is important when trying to develop software to a deadline. Would highly recommend the components and the company to any fellow Delphi developers.

- Trevor Bradley

I use TMS components since a couple of years and I'm really happy with the components but especially with the support the company does provide, too. I always (!) get fast and competent help. In my opinion they have a great package of software and service.

- Jimi Romano

TMS WEB Core

language
Create modern web apps in Delphi & VSC
build_circle
Use Object Pascal code to build JavaScript apps