Is there a Way to halt or stop for some seconds (General questions)
HI,
IM using WOD with VB (wodTelnetDLX1).
At some point, I will send a Y or N & just need to wait there for some time (a min of 2 secs) with out processing to next statement.
I tried the Sleep method in VB. If i use this, Im not able to See the Y or N on the window.
so can you tell me how to make the program just Wait for a sec or 2 & then proceed. (I must be able to see the Y or N , what ever i sent thru using SEND command before this wait starts).
Thanking you,
regards & best wishes,
Sai
Re: Is there a Way to halt or stop for some second
Sai,
not sure what you're trying to do, or do you use blocking mode. If you use blocking mode, why don't you use loop like this[code]d = now
while now - d < 5 seconds
doevents
wend
[/code]or something similar to that? This will allow wodTelnetDLX to work and process messages, and still will wait limited time?
Kreso
Re: Is there a Way to halt or stop for some second
HI,
I tried all the ways but i couldnt get it as i need.
With out any Sleep or delay fucntions, my file works in DEBUG mode with a breakpoint.
its not working fine at runtime.
im using wodTelnetDLX1.Text(wodTelnetDLX1.Row) this method, which gets me exact string in debug mode. In runtime it says outof bound error.
can you tell me how i can get the screen data at runtime with out any delay functions.
By using the delay funcitons, the program is delayed & the WOD GUI is also not updated or refreshed with any data that is received from host.
can you help in this regard.
thanking you,
regards & best wishes,
Sai
Re: Is there a Way to halt or stop for some second
Sai,
I don't think we can solve your exact problem, since we don't know internals of your code.
Would it be possible for you to zip your project and send it over, so we can run it (perhaps connect to your server too), see the problem, and get the idea how to fix it?
Regards,
Kreso
Re: Is there a Way to halt or stop for some second
HI Kreso,
I will send my code, please look into that & do let me know.
In debug mode it works but not in runtime.
But you can not connect to my host.
so do tell me if you still want my code then i will send you across.
thanking you,
regadrs & best wishes,
Sai
Re: Is there a Way to halt or stop for some second
Yes, please send it over, I'd connect to our local server.
Kreso
Re: Is there a Way to halt or stop for some second
HI Kreso,
I had sent you the project.
please do check & do let me know.
Sai