Re: MSComm run-time error
First of all, Did you add the control to the project, From Project->Controls?
If yes, then did you create one on the Form?
If yes, then
1. You dont need to declare
DIm Mscomm1 as contrl .
2. Even if you Decalre, before accessing its properties, specially for Controls, you need to set them to an existing instance of the control. Like
set mscomm1 = Me.MsCom2 ' or what ever
3. VB 6.0 allows controls to be created Runtime with
Me.Comtrols.Add method. Please check on that to know how to add a MsComm control runtime, and then set your reference to it.
"With Block not set" means the variable ' control/class is not initialised to any proper value.
RK
Re: MSComm run-time error
Ravi- thank you very much for your help here. I've spent many hours trying to track down this very information. Most people don't know how to do this and most books don't even begin to cover it. It's a blessing to find someone willing to share their knowledge. I was in class until pretty late last night and I'm just now finding time to research the infromation you sent me.
Thanks again!
-Matthew