Questions tagged as 'pascal'

1
answer

Remove all the leaves of a binary tree in pascal

I'm trying to implement an algorithm that removes all sheets from a binary tree, that is, nodes that have no children. I can even remove it but I can not leave the "parents" of these nodes with null reference. When I call the function to display...
asked by 21.05.2015 / 03:37
2
answers

Download during installation by Inno Setup

Working in a company that uses Inno Setup to create the installers for your products, I was recently tasked with creating a better installer, one of the improvements that was suggested would be to download a plug-in during the installation proce...
asked by 23.11.2016 / 18:59
3
answers

How to include functions or procedures in Pascal through an existing file?

I'm new to Pascal and am looking to call functions or procedures from an existing Pascal file. There is a function in Julia called include('filename.jl') where I add functions already written in a notepad made earlier so that I can use...
asked by 05.05.2015 / 05:07
1
answer

Defining an array vector

I'm learning Pascal and am having basic syntax problems to define a vector-type variable. Here's the statement: var x:array[0..225] of String; I would like to assign the following values and as follows: x := ('X0','V1','V2','V3'), ('X1...
asked by 25.10.2014 / 22:41
1
answer

Problem with the sum of 10 numbers with for

I have a question in an algorithm that adds 10 numbers with the for repeat command. soma_numero := soma_numero + idade; When I declare soma_numero as 0 before for the algorithm runs normally, but its I do not declare 0...
asked by 17.06.2018 / 19:59
0
answers

Inno-Setup: Uninstall without administrator permission [closed]

Using Inno Setup , I need to be uninstalled by a standard user when a program is installed on the machine by an administrator user. The PrivilegesRequired parameter is like lowest , but the problem remains. I tried some machines here (...
asked by 15.10.2015 / 19:51
2
answers

How to convert a String to TNotifyEvent in Delphi?

I want to change the OnTimer event of a TTimer in my project at run time, I tried as follows: Timer1.OnTimer:= ('close'); But Delphi reports this: (E2010 Incompatible types: 'TNotifyEvent' and 'string') , how can I convert String...
asked by 29.10.2015 / 01:31
1
answer

Why does FloatToStr exist if Delphi does not have the Float data type?

Reading about the Delphi / Pascal data types, I realized that there is no type Float , however, there is the FloatToStr() function, as well as StrToFloat() . In this case, could you use a floating-point variable of any kind...
asked by 31.07.2018 / 22:45
1
answer

How to remove all references from deleted forms of the parent form?

I have my generic form and I have several others that visually inherit their components. When I delete a component in the parent form and open an heir I get this message: I can click OK and confirm that the component has been delete...
asked by 14.01.2016 / 04:37
1
answer

Lazarus IDE: Importing images into the project

Lately I've migrated from Delphi XE6 to Lazarus IDE, and since I'm not used to the new platform I'd like to know how I can import images, videos and other resources into the project and use them (without the need to use a specific directory of t...
asked by 02.12.2014 / 04:33