[Lazarus-es] Pregunta de novato
Alejandro D. Burne
alejandro.dburne en gmail.com
Mar Jun 2 00:44:35 CEST 2009
2009/6/1 Paola Bruccoleri <pbruccoleri en adinet.com.uy>:
> Hola.. te falta agregar una unit, pero no estoy segura cual:
> Classes, LResources, Forms, Controls, Graphics, Dialogs,
> LCLType, ComCtrls;
>
> chauuuuuuuuu
>
>> project1.lpr(8,15) Error: Identifier not found "showmessage"
>> project1.lpr(10) Fatal: There were 1 errors compiling module, stopping
>> Alguien que me pueda dar una mano???
>
Segun la documentación es de la unit Dialogs, la cual esta
referenciada, por ello que no entiendo:
[Overview][Constants][Types][Classes][Procedures and
functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)
ShowMessage
Show Message
Declaration
Source position: dialogs.pp line 509
procedure ShowMessage(
const aMsg: String
);
Arguments
aMsg
A string constant containing the message to be shown.
Description
Procedure ShowMessage (const Msg: string);
The simplest message dialog: takes a simple string as argument,
displays it in a stereotyped box,
and waits for a mouse-click or enter-key event
before returning to the calling routine or program.
This is a modal procedure call,
that is the box is displayed, receives focus,
and does not relinquish focus until the OK box is clicked or otherwise selected.
See also
forms.TApplication.MessageBox
Message Box: a useful function to display a message.
Example
Program LazMessage;
Uses Dialogs;
begin
ShowMessage ('This is a message from Lazarus')
end.
More information about the Lazarus-es
mailing list