Cita:
Empezado por pepecharlie67
...¿como puedo hacer para asignar a un string el texto de un edit?...
|
Código Delphi
[-]var
texto:string;
begin
texto:='hello';
edit1.text:=texto;
texto:=edit1.text;
end;
Cita:
Empezado por pepecharlie67
Me dado cuenta que no son del mismo tipo,ya que el texto del edit es de tipo TCaption.
|
No importa!, son equivalentes
Cita:
Empezado por Ayuda Delphi
TCaption is the type of the Caption property.
Description
TCaption is the string that represents the caption or text of a control. Código Delphi [-]type TCaption = type string;
|