cvertz
26th February 2002, 16:59
I have a question about the suspend function. I know that it is in milliseconds. How do I translate suspend(750) into clock time?
Such as 750 = 3 seconds.
Thanks in advance
Carol Vertz
tsanchez
26th February 2002, 17:38
I've not understood your question completely. The parameter
passed to the suspend 4GL function is meassured in miliseconds
yet, so suspend(750) would detain the current process in 0.75
seconds. Were you asking about the equivalence in cpu time
maybe ?
Tomas Sanchez Tejero
deckard@encomix.es
mark_h
26th February 2002, 17:42
I think Tomas answered the question. Just in case 1000 milliseconds = 1 second. I am also not sure what you mean by "clock time".
Mark
cvertz
26th February 2002, 17:47
This function is used with bar code scanning equipment. If there is an error the code
display("errror")
refresh()
suspend(750)
error = ""
display("error")
refresh()
What I am wanting is how long does the error message stay on the scan screen before the error message disappears. Once I know how long 750 is then I can extend the time so my end users can read the error message.
tsanchez
26th February 2002, 18:07
The the equivalence Mark and I gave you was right. 1000
miliseconds = 1 second or 750 miliseconds = 0.75 seconds
whatever you prefer. Although I fear you're not making a
good use of the suspend function. You'll probably should
use mess or message . With mess a message
from the data dictionary is displayed waiting for the user
to press return if you decide to. Message cold do the trick
too but would make that session language dependent.
Read you soon.
Tomas Sanchez Tejero
deckard@encomix.es
cvertz
26th February 2002, 18:49
Thank you. I was thinking of using the message instead of suspend as I reading the replies. I have only been working with baan since 1999, with no training. Before that a straight cobol programmer from the 70's. I like to verify and understand what I am seeing in the scripts.
mark_h
26th February 2002, 19:22
No problem. Sometimes it is hard to understand a question on the board, until you get a few replies and suggestions. :)
Also I have used delays before with messages - mostly in mass update function servers. So there is nothing wrong with a delay in certain circumstances, but I do prefer to use the message command.
Good Luck!
Mark
tsanchez
26th February 2002, 22:46
Sure I was glad to help you too, cvertz. I'm not always able to
lend a hand to my dear teammates, usually I receive much more
help than I give away but we all support each other as far as we
can.
Welcome aboard.
Tomas Sanchez Tejero
deckard@encomix.es