Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Conexión con bases de datos (https://www.clubdelphi.com/foros/forumdisplay.php?f=2)
-   -   Compatibilidad entre PChar y String (https://www.clubdelphi.com/foros/showthread.php?t=26472)

vick 24-10-2005 20:37:07

Compatibilidad entre PChar y String
 
QUE TAL

Tengo una variable entera, la cual es convertida a string con Inttostr(var entera), y la quiero incluir en un mensaje dl siguiente tipo Application.messagebox('Error' + Inttostr(var entera),'Ayuda...',MB_OK+MB_ICONHELP); y me marca un error de incompatibilidad de tipos entre PCHAR Y STRING.

Alguien conoce la forma de incluir esa variable dentro del mensaje citado, sin que exsita esa compatibilidad.

GRACIAS DEANTEMANO. SALUDOS

roman 24-10-2005 20:44:31

Código Delphi [-]
Application.messagebox(PChar('Error' + Inttostr(var_entera)),'Ayuda...',MB_OK+MB_ICONHELP);

// Saludos

jachguate 24-10-2005 20:48:20

esta:

Código Delphi [-]
  Application.messagebox(PChar('Error' + Inttostr(var entera)),
    'Ayuda...',MB_OK+MB_ICONHELP);

Hasta luego.

;)

roman 24-10-2005 20:51:04

:rolleyes:

jachguate 24-10-2005 20:55:16

Cita:

Empezado por roman
:rolleyes:

:rolleyes: :rolleyes: :D :D :D

Saludos.

;)

dec 24-10-2005 21:50:35

Hola,


Cita:

Empezado por roman
:rolleyes:

Cita:

Empezado por jachguate
:rolleyes: :rolleyes: :D :D :D

:o :eek: :) ;)


La franja horaria es GMT +2. Ahora son las 14:48:01.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi