Questions tagged as 'pascal'

1
answer

How to create a Virtual String Tree in Delphi

What happens is that I created a Virtual String Tree in Delphi (Typhon64), but I do not know how to add parent and child nodes to create the tree, I looked at the documentation but only found click events that creates deletes and edits the node (...
asked by 12.05.2015 / 15:22
1
answer

I can not change a record in a .dat file in Pascal

I'm doing an exercise for school and I can not get the program to rent and return cars. Whenever I try to do this the program crashes and I do not understand why. Follow the code below: Program cargest; uses crt; Type frota=Record Marc...
asked by 26.05.2015 / 00:16
1
answer

Use the values of an array variable of a procedure in the main routine of the algorithm

program nome_jogadores_futebol_basquete_volei; {$APPTYPE CONSOLE} uses SysUtils; procedure futebol; var i: integer; jogador: array[1..11] of string; begin for i := 1 to 11 do begin writeln('Digite o nome do joga...
asked by 28.07.2018 / 01:10
2
answers

How do I know if there is a selected row in the DBGrid?

How can I tell if there is a selected row in my DBGrid. In this case below: Thepointerisselectedinthedataset,butIwantedtoknowwhenthegridlookslikethis: In this case would it be only if it the line is "painted", if so how to know? I tried...
asked by 14.07.2015 / 04:31
1
answer

Identifying a String as a Pascal name

I have 50 array type variables and I have a method that will receive a String containing a name from an existing variable. I would like to know what is the ideal way to identify the value of the String received as one of the 50 vari- ables decla...
asked by 29.10.2014 / 14:14
1
answer

TEdit / TDBEdit error [closed]

I have a small problem. When I use TEdit on my form, the keys I type are captured by the text box (which is normal!), But when I use TDBEdit , the keys are not captured by the text box. Has anyone had this and knows how to help me?...
asked by 17.09.2018 / 23:35
1
answer

Return number of rows or columns of an array

I have an array like this in Delphi XE8: Matriz[2][3] . I would like to know what method I can use to return the number of rows or columns in this array, my idea is to loop with 2 for 'if I scroll through the array elements by in...
asked by 06.10.2017 / 20:44
1
answer

Doubt in an equation in Pascal

I'm having a problem with a code here. What you are asking is: Given X as a parameter (in degrees), calculate cos (x) with the sum of the first 15 terms in the series below: With the compiler I've gone step by step, but I can not find faul...
asked by 28.08.2017 / 22:03
0
answers

Find subreport values to total in main report #reportbuilder

Good morning, so I've never done very well with the reportbuilder but I work in a softhouse and one of my functions is to develop reports on report-builder . I am making a purchase report where I have a subreport with a variable1.value. th...
asked by 27.07.2018 / 08:28
1
answer

How to eliminate repeated numbers from a visual vector?

algoritmo "semnome" // Função : // Autor : // Data : 06/02/2018 // Seção de Declarações var veto1 : vetor[0..9] de inteiro veto2 : vetor[0..9] de inteiro j,i : inteiro inicio para i de 0 ate 9 faca leia(veto1[i]) fimpara para i de 0 ate 9 faca...
asked by 08.02.2018 / 19:53