Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clock not displaying correctly 5

Status
Not open for further replies.

fanlinux90

Programmer
Oct 31, 2022
22
0
0
CO
this is the prg code

Code:
[indent]SET DELETE ON
[indent]SET EXCLUSIVE OFF
[indent]SET EXACT ON
[indent]SET CENTURY ON


[indent]CLEAR ALL
[indent]CLOSE ALL
[indent]CLEAR

[indent]DO WHILE .T.

[indent]@ 05,01 To 31,150 doub 
[indent]SET CLOCK ON TO 07,77
[indent]@ 07,05 say "DATE : "+DMY(DATE())
[indent]@ 07,35 say "PRGS ALL IN ONE" FONT "arial",10
[indent]@ 07,70 say "TIME : "
[indent]@ 09,02 TO 09,99
[indent]@ 10,35 Prompt "

but when I run the prg, the time is displayed in the upper right corner of the screen and not next to the word time

clock_missing_ihtjzz.jpg


What change should be made so that the clock is displayed next to the word time?

clock_fix_eughmr.png
 
Do you understand syntax descriptions?

help said:
SET CLOCK ON | OFF | STATUS

-or-

SET CLOCK TO [nRow, nColumn]

The pipe symbol | between the options ON | OFF | STATUS means one of these clauses can be used. Also the -or- means an explicit or, you can't use ON and TO in the same SET CLOCK call.

So in long form, the possible versions of SET CLOCK are:

Code:
SET CLOCK ON
SET CLOCK OFF 
SET CLOCK STATUS
SET CLOCK TO nRow, nColumn
SET CLOCK TO
Yes, the latter using the TO clause without coordinates also is valid. It puts the clock at its standard position, if you read the help topic. not important for your case, but just so you understand the square brackets around the [nRow, nColunm] in the condensed syntax description mean those are optional.

Now pick what you need from that.

Chriss
 
Fanlinux90,

Chris has given you the answer. (In summary, [tt]SET CLOCK TO 07,77[/tt] is all you need).

But while we have your attention, please review the replies you received to your question in thread184-1820377. You had around 20 replies, with several possible suggestions. It would be helpful if you could now return to that thread and let us know if any of the suggestions were useful. Or, at the very least, to acknowledge the help we have offered. If you simply post a question and then ignore our attempts to help you, you might find us reluctant to reply to any further questions you might post in the future.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top