Board index » delphi » Time and Date in Graphics mode?

Time and Date in Graphics mode?

Hello Again! :)

    How do I enter the data and time into a program thats running in
graphics mode?
    Also, how do I goto different procedure when I'm currently in a
procedure?

    Thanks for all the help!

 :) Evan Anderson

 

Re:Time and Date in Graphics mode?


Quote
Evan Anderson <e...@pcsnow.com> wrote:
>     How do I enter the data and time into a program thats running in
> graphics mode?

There are date and time procedures in the Dos unit. The mode you're in is
irrelevant until it comes time to display them (if you want to do that), in
which case you display them as you would any other piece of text.

Quote
>     Also, how do I goto different procedure when I'm currently in a
> procedure?

You can call one procedure from within another one in exactly the same way
that you called the first one. Just use its name and supply it with any
parameters it needs.

--
______________________________________________________________________
     The Scarlet Manuka,      |        Nitpickers' Party motto:
  Pratchett Quoter At Large,  |  "He who guards his lips guards his
 First Prophet of Bonni, is:  |  soul, but he who speaks rashly will
   sa...@maths.uwa.edu.au     |    come to ruin." -- Proverbs 13:3
______________________________|_______________________________________

Re:Time and Date in Graphics mode?


Quote
In article <8dfvhh$...@news.dx.net>, Evan Anderson <e...@pcsnow.com> wrote:
>Hello Again! :)

>    How do I enter the data and time into a program thats running in
>graphics mode?
>    Also, how do I goto different procedure when I'm currently in a
>procedure?

You do not goto anything in Pascal. You crate procedures and functions
that do specific tasks.

If procedure A has some code that you want to execute in procedure B,
you cannot and should not do any jump into that code. Instead you should
isolate that code into a new procedure C and then call it from both A
and B. Of curse the code should so some clearly defined task.

Osmo

Other Threads