Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Object Pascal Programming Language
  • Page:
  • 1

TOPIC:

How i can put the time in a field?? 8 years 6 months ago #8369

  • lestroso
  • lestroso's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 50
  • Thank you received: 0
Hi to everyone,
I need to put the time in a field...how i can do it???
i tryed this code but without success.....
 procedure myprocedure.TastoresetClick(Sender: TObject);
     begin
      messaggi.Caption :=  writeln ('Current time : ',TimeToStr(Time));
 end;         

But i 've got an error!!!
Error: Incompatible type fot arg no1: Got "untyped", expected "TTranslateString"
how i can fix it ?please?
Thanks a lot in advance....

Lestroso :blush:

Please Log in or Create an account to join the conversation.

Last edit: by lestroso.

How i can put the time in a field?? 8 years 6 months ago #8370

  • universe
  • universe's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
Hello, are you trying to put this in a label caption? just do this
 procedure myprocedure.TastoresetClick(Sender: TObject);
     begin
      messaggi.Caption :=  'Current time : '+TimeToStr(Time);
 end; 
The following user(s) said Thank You: lestroso

Please Log in or Create an account to join the conversation.

Last edit: by universe.

How i can put the time in a field?? 8 years 6 months ago #8371

  • lestroso
  • lestroso's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 50
  • Thank you received: 0
Dear Universe......Thousand Thanks!!! You have solved in full my problem!!

Thank you thery much...this works fine....

Best Regards,

Lestroso :woohoo:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1