Thema: Delphi PChar zu String!

Einzelnen Beitrag anzeigen

Gast
(Gast)

n/a Beiträge
 
#5

Re: PChar zu String!

  Alt 4. Aug 2003, 11:18
Vielleich so?

Code:
var
timeOP1, timeop2: string;
begin
  timeOP1:=datetoday(payoffdayxy);
  timeOP2:=datetoday(payoffday);

Button := Application.MessageBox(strpas(timeop1)+'  '+strpas(timeop2) ,'Abfrage', 36);

end;

oder

Button := Application.MessageBox(PChar(timeop1)+'  '+Pchar(timeop2) ,'Abfrage', 36);
  Mit Zitat antworten Zitat