Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Should only print once, argh!

Author
Message
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th May 2003 18:07
Ok my problem is this, it prints more then once, when in theory (to me anyways) it should print COORDY2 once.

Please click the source button.
I hear and I forget. I see and I remember. I do and I understand.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 5th May 2003 18:12
Why would you think it only prints once ?

The best way of getting it to only print once is to use a CLS and SYNC command before the print statement - that way it will always print in the same place.

Alternatively, you can use the set cursor command, but that can make a mess if COORDY2 changes in length.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th May 2003 18:16
I thought it should only print once because it is in a repeat...until loop, and the loop finishes when mouseclick()=0 and I set it to 0.

Can you put cls and sync in there for me please? I'm not quite sure where to put it, and could you please explain why it prints more than once,
thankyou.

I hear and I forget. I see and I remember. I do and I understand.
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th May 2003 18:16
you cant use:
mouseclick()=0


if you donc click..on mouse it will print it once..
D Man
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 5th May 2003 18:17
By the way it's nonsense to declare "mouseclick()" as 0.
"mouseclick()" is a DBPro-function and can not be defined.

God is real, unless declared integer.
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th May 2003 18:21
Nevermind I have tried sync and cls and got that working, but I still don't understand why it doesn't print just once.

I hear and I forget. I see and I remember. I do and I understand.
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 5th May 2003 19:41
CAUSE YOU PRESS THE /"!/| MOUSE...........
if not ..your computer is screwed up......or you did not post the whole code..........

if there is a loop like that:


it will print 1 time each loop if yo do not press the mouse....
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th May 2003 20:13 Edited at: 5th May 2003 20:28
Now for this piece of code, how can I get that to only print it once and not keep on printing below eachother?

It prints when you move the mouse, which is what I want.
*Edit*
Forgot to post the actual code,



I hear and I forget. I see and I remember. I do and I understand.
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th May 2003 20:33 Edited at: 5th May 2003 20:51
This sort of does it, but when the mouse stops moving the number disapears.
How can I prevent that?

I hear and I forget. I see and I remember. I do and I understand.
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th May 2003 20:55
Done it.

I hear and I forget. I see and I remember. I do and I understand.

Login to post a reply

Server time is: 2024-09-20 07:31:14
Your offset time is: 2024-09-20 07:31:14