Thema: Delphi PChar zu String!

Einzelnen Beitrag anzeigen

Benutzerbild von 1PM
1PM

Registriert seit: 27. Dez 2002
Ort: Ludwigshafen
145 Beiträge
 
#3

Re: PChar zu String!

  Alt 4. Aug 2003, 11:08
HEy Sakura!

Danke für die Antwort, fkt. aber leider nicht!

Code:
function datetoday(payoffdayOP: integer): string;
begin
 case payoffdayOP of
   1   : Result:='Montag';
   2   : Result:='Dienstag';
   3   : Result:='Mittwoch';
   4   : Result:='Donnerstag';
   5   : Result:='Freitag';
   6   : Result:='Samstag';
   7   : Result:='Sonntag';
 end;

 if (payoffdayOP>7) or (payoffdayOP<1)
   then Result:='Ruhetag';
end;



var    
timeOP1, timeop2: string;

      timeOP1:=strpas(datetoday(payoffdayxy));
      timeOP2:=strpas(datetoday(payoffday));
      Button := Application.MessageBox(timeop1+'  '+timeop2 ,'Abfrage', 36);

Gruß 1PM
How can I know what I think before I hear what I say?
  Mit Zitat antworten Zitat