×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

clock not displaying correctly
5

clock not displaying correctly

clock not displaying correctly

(OP)
this is the prg code

CODE --> pro

[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



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

RE: clock not displaying correctly

Do you understand syntax descriptions?

Quote (help)

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

RE: clock not displaying correctly

4
Fanlinux90,

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

But while we have your attention, please review the replies you received to your question in thread184-1820377: delete missing operand. 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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close