acess the clock

Hi ,

How can i access the clock from navison …

more calrifaication … I need to make code to ask if the time is 12:00am then do this and this …

for example if windows.clock = 12:00 am then display this Message " I am here " .

thx for any help

Hi!

Well, I suppose you need the TIME function of NAV:

TIME (Time)

Use this function to retrieve the current time from the operating system.

Time := TIME

Time

Data type: time

The current time.

Comments

You can only use the TIME function to retrieve the time from the operating system. You cannot use it to set the time in the operating system.

Example

This example shows how to use the TIME function.

MESSAGE(Text000, TIME);

Create the following text constant in the C/AL Globals window:



Text Constant



ENU Value



Text000



‘The current system time is: %1’

The message window could show:

The current system time is: 4:15:46 PM

hi joreg ,

okay great now how i can tell him IF Time= 15T then display message

what i should use if i want to 1add minutes or seconds … ho can i tell hime if time= 15:30 then diplay message .

it’s telling me that time is time datatype and not integer

thx for your help

IF Time = 120000T then message(‘tada’);

Hi ,

thanks … it works