Questions tagged [pascalscript]

Free scripting engine that allows you to use most of the Object Pascal language within Delphi or Free Pascal projects at runtime.

Pascal script is a script engine developed by RemObjects. It uses the object pascal language and can be implemented in Delphi or FPC project.

One prominent use of Pascal Script is the Open Source project.

971 questions
-1
votes
1 answer

Inno Setup - Using {app} in Preprocessor

I want ISPP to check if a file/folder exists in {app} during InitializeUninstall. Is that possible?
-1
votes
2 answers

Inno Setup creating an unwanted empty folder with value in DefaultDirName

Inno Setup installer is creating an unwanted empty folder using my initial value of DefaultDirName, even though I have set WizardForm.DirEdit.Text = 'c:\preferredinstalldir' in CurStepChanged (curStep = ssInstall). The installer puts the files in…
-1
votes
1 answer

How to modify the Local.config from Innosetup script

I'm having some issues getting this code to function correctly. What I'm trying to accomplish is a user puts in a ConnectionString (during the setup) and its places in a already formatted file. The file is Local.config in the {app}\local directory.…
-1
votes
2 answers

Pascal and Delphi Arrays to C/C++ Arrays

In pascal and delphi, arrays have their lengths stored at some offset in memory from the array's pointer. I found that the following code works for me and it gets the length of an array: type PInt = ^Integer; //pointer to integer. Function…
Brandon
  • 22,723
  • 11
  • 93
  • 186
-1
votes
1 answer

RemObjects PascalScript How to get the value of the variable after compilation?

RemObjects PascalScript. How to get the value of the variable after compilation? var a,b,c: integer; begin a := 5; b := 6; c := a+b; end; cc := IntTostr(????c????);
-1
votes
1 answer

Identifier expected in const

I am having problems calling the StringChangeEx function which is replacing parts of a file path such as... THIS: C:\Program Files (x86)\Steam\SteamApps\common\Stalker Call of Pripyat\bin TO: C:\Program Files (x86)\Steam\SteamApps\common\Stalker…
user2643036
-2
votes
1 answer

Rewrite While Do loop statement as For Do loop in Pascal

I am trying to rewrite a while do loop as a for do loop in Pascal, please is there a way to rewrite the below code into a for loop statement... And determine which is better and why ? Thanks in advance.. Here is the code program Quadractics; uses…
Browyn Louis
  • 218
  • 3
  • 14
-2
votes
1 answer

Programmatically set Inno Setup Uninstall window caption

How to change the title of the window at the uninstall? We need to do this using code, similarly to this code for install window caption: procedure InitializeWizard(); begin WizardForm.Caption := 'Setup Application'; end;
Drantanete
  • 11
  • 1
-4
votes
3 answers

Pascal else if statment

below is my code and error message I had been thinking of how to correct it but still couldn't, can anyone pls help me, thx I was trying to make a programme that can make a square with numbers out side like this input:3 output: 1 2 3 8 4 …
Casper Wong
  • 11
  • 1
  • 4
-4
votes
1 answer

Why do I get a syntax error on a record type definition in Delphi scripting?

I tried to make a custom record type in order to store information of a product and call it in functions and procedures when needed. The code is written in a script compiler of a Delphi based ERP program. The problem I'm facing is that I get a…
-4
votes
1 answer

How can i fix my this syntax error?

I want to test my pascal code but I can't figure out why it's getting this error: Fatal: Syntax error, ; expected but ELSE found Program Lesson2_Program1; Var name, surname, community, inputAnswer : String; GrossSalary, expenses, NetIncome:…
OOFERS
  • 1
  • 2
1 2 3
64
65