Hi ttuser4,
As I advised in my previous post VB has a Timer control. You can use this control to keep track of time manually.
Here is a simple example. Create a new project. Put a label on the form (and call it Label1). Also add a Timer Control (Timer1). Change the Interval of the Timer control...
My question to you is "How do you know the user has already changed the time when the program is first executed?". You're obviously testing for a time between Midnight and 7am (6:59). VB has a Timer event you could use to set up your own clock once the program is started, but if the user has...
Depending on how many loops you do, it may be prudent to only perform the DoEvents say every 100th iteration as each call to DoEvents passes control back to Windows to do other stuff. If you're only doing 100 or 1000 Iterations it doesn't matter so much as you won't notice a significant slowing...
Hi,
I've had problems with the Comm port once before and found that by setting all the setting BEFORE opening the comm port solved many issues. Give it a try.
Regards,
Walter
I have struggled long and hard in the early days coming to grips with variable types and exactly these types of errors. since those early days, I now use "Option Explicit" in EVERY module to help prevent type errors. Also, when declaring variables, I use Hunagrian Notation, e.g. Dim lngIndex as...
Hi,
I've had a similar problem. I am trying to show a memo field (using CR8.5 and ODBC connection into a D3 Database) but need to convert the VMs into CRLFs or spaces. (The maximum length of the field is currently 1195chars but is expected to grow further.) However, I cannot get the SQL...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.