Questions tagged as 'pascal'

1
answer

How to see if a port is in use in Inno Setup?

In my installer created with Inno Setup it was necessary to check the availability of a port to install and mount a MySQL service, since if the port is in use it is necessary to change it.     
asked by 31.05.2017 / 01:51
1
answer

Create a component in FireMonkey

Well, I hope you can help me. Some time ago I have been using a component that I made in VCL for delphi 2010 that consists of a rectangle that changes color according to three states as shown in the attached image. With three additional graphic...
asked by 10.04.2018 / 01:25
1
answer

Problem with Procedure and Case

I want to make a menu, it's for a game, to try the case and procedure , but it does not work. This is the code: Program Juego; uses crt; Procedure Menu; var op:integer; begin Writeln ('Seleccione una opcion') ; Writeln ('...
asked by 17.07.2017 / 01:23
1
answer

how to consume delphi dll in c #

I have a delphi function that I export as dll, here I leave my code: library MdEncDec; uses System.SysUtils, System.Classes, Bcrypt; {$R *.res} function EncryptWord( value: PChar ): ShortString; stdcall; export; var BCRYPT1: TBCRYPT...
asked by 07.11.2018 / 19:24
1
answer

Make a MySQL query from Inno Setup

I'm doing an installer, which needs to send a query at the end of the installation and after mounting the sMySQL service. I have no idea how this is done, this would be in the CODE section in PascalScript. Once the installation is finished, a...
asked by 31.05.2017 / 00:26
1
answer

Are arrangements based on 0 or 1 on Delphi / Pascal?

I want to make an arrangement in Delphi. I found a solution with this code: var arr: array of String; Every time I add something, I do it this way: var Form1: TForm1; var arr : array of String; procedure TForm1.Button1Click(Sender: T...
asked by 29.08.2016 / 18:11
2
answers

Syntax Error; expected but else found (Pascal)

I'm trying to do nests of if in Pascal, but in all the programs that I try to do I get the same error    Syntax Error; expected but else found For example program temperatura; const t=35; Hipotermia: real=36; Fiebre: real=...
asked by 10.10.2018 / 16:07
1
answer

Avoid duplicates in list box (Inno Setup)

I receive an internet xml, which contains countries and currencies that may vary, then I charge it to a "List Box 1" and with the buttons on the screen I add or remove them from "List Box 2" Here is an image of what I want: link the code...
asked by 15.05.2017 / 19:10
1
answer

How to compile in sublime text 3 using FPC 3.0 LINUX (Ubuntu)

I am interested in knowing the code when creating a new build system, to compile with Free Pascal using linux, or in simple words how to configure Sublime Text to compile .pas files in linux.     
asked by 25.10.2016 / 00:48
2
answers

Order of characters in Free Pascal

In Pascal the type char are ordered, and I do not know what that order is. For example, if I have the digit 5 and I want to make it take the value of the integer 5 I do ord('5') ? But does it have that value or is it a...
asked by 22.11.2016 / 17:28