Thank you everyone. Yes, I did start this thread, and yes, it does seem as though there are opinions out there on this!
The application I am porting calls a routine. Within the routine, I check a flag/boolean. If the flag is not set, I initialize values and set the flag. The next time the...
Ok - It must be late. And yes, I am still a beginner here in the VB stuff.
How can I, within a Private procedure, define a static variable, AND initialize it? In fact, if I am not able to initialize the static item, I am a little confused over why I would ever choose to use a static...
To One and all - many thanks! I just needed to get the type declared in a module, and PUBLIC! I also needed to move my functions from my module where I defined the type to the form where they were used.
Simple it was, but your help invaluable!
Zemp,
My new data type is defined in the declaration section for my form (I only have one form). It is defined as
Type Complex
Real as Double
Imag as Double
End Type
I have a command button on my form, and for the click event, I perform some graphics initialization, data acquisition...
Good evening,
I just got the following error message:
Compile Error:
Only user-defined types defined in a public object module can be coerced to or from a variant or passed to late-bound functions.
My code is really simple.
I am defining a new data type (Complex number, with a Real and...
It has taken a while, however, I now have the final answer to all my problems, and it was partly what all you guys said.
#1) I needed to be much more careful on how I clocked data from the USBMOD4 side. It is very finnecky. I no longer get any computer lockups, and the USBMOD4 chip now...
Please forgive my very simplistic question.
I am using VB6, and have not even touched the surface of all I can do with it. However, I may have a VB net version available. But I do not want to install or use it if it does not provide me with some significant advantages. Does anyone know the...
Thanks for the input! I think I have half the story now. The following is a bit long, so tune out if you are not interested :-)
First, I have a USB chip connected to my USB port. The USB chip has drivers that are supposed to make it look like a serial port (Virtual). Also, the USB chip is an...
Good day. I have already been helped once here today, let's see if I can bat 1000!
I am slowly putting together a com application. I have now been able to successfully open and send a character of information to a USB device configured as a Virtual Serial Port.
However, here is the odd...
Good day. I have already been helped once here today, let's see if I can bat 1000!
I am slowly putting together a com application. I have now been able to successfully open and send a character of information to a USB device configured as a Virtual Serial Port.
However, here is the odd...
Thank you for you help! I have added that and run it. Guess what? Com Ports 1 through 8 are all unavailable.
I am guessing that there is something going on with my Computer, not the code.
I of course at this point am about to throw up my hands, as this seems a little beyond me.
If you can...
Good day,
I am an average programmer, but have only just entered the Visual Basic world. I am happy to say it all makes good sense and am progressing quickly.
One problem is that I can't get any comm port to open in my system! I am using the most simple of codes to see if I can simply open...
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.