Ver Mensaje Individual
  #7  
Antiguo 04-07-2011
thebest07 thebest07 is offline
Registrado
NULL
 
Registrado: jul 2011
Posts: 3
Reputación: 0
thebest07 Va por buen camino
Cita:
Empezado por duilioisola Ver Mensaje
Para mostrar mensajes puedes utilizar la función ShowMessage(msg);

Para comprobaciones tienes las sentencias if..then..else.

Código Delphi [-]if (a=b) then
ShowMessage('a y b son iguales')
else
ShowMessage('a es diferente de b');




Si tienes más de un comando debes encerrarlos en bloque begin..end

Código Delphi [-]if (a=b) then
begin
ShowMessage('a y b son iguales');
a := 0;
b := 0;
end
else
begin
ShowMessage('a es diferente de b');
if (a>b) then
ShowMessage('a es mayor que b')
else
ShowMessage('a es menor que b');
end;


Muchas gracias compañero... esto me sirbe mucho de ayuda.... Gracias,,...
Responder Con Cita