-1
how to receive panel values with edits for a string array? I need 10 records that will be typed into edits that are inside a panel, and so save into an array of strings or integers.
-1
how to receive panel values with edits for a string array? I need 10 records that will be typed into edits that are inside a panel, and so save into an array of strings or integers.
2
procedure Form1.Button1Click(Sender: TObject)
var
//declaro o array
valores: array of string;
begin
//Altero a quantidade de items do array, no caso 10.
SetLength(valores, 10);
//Passo o valor dos edits para os itens do array
//NOTA: Arrays começam pelo índice 0. No nosso caso os itens do nosso array
//vão de 0 até 9.
valores[0] := Edit1.Text;
valores[1] := Edit2.Text;
...
valores[9] := Edit10.Text;
end;
Browser other questions tagged delphi
You are not signed in. Login or sign up in order to post.
Adds a textual explanation so that your response is also useful to other members.
– Ricardo
@Ricardohenrique added ;)
– Rodrigo Farias