Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run-Time Error '426'

Status
Not open for further replies.

JohnStep

Programmer
Apr 19, 2000
190
US
<br>&nbsp;&nbsp;I need help with a Run-Time Error ' 426 ' - Only one MDI form allowed. I am trying to access a socket on the MDI form from a module. The code is as follows:<br><br>&nbsp;&nbsp;From Module:<br>&nbsp;&nbsp;============<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for x=1 to sockets<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;byte=frmMain.Socket2(x).Write(buffer,len(lgn))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next x<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;The Error is Generating from the second line of code. It seems it cannot access the socket2 on frmMain from a module. I know the line of code is right hense it works on the client in the same fashion. <br><br>&nbsp;&nbsp;The error it generates is Only one MDI form allowed. I am baffold any help will be appreciated...&nbsp;&nbsp;&nbsp;John Stephens<br>
 
do you have <FONT FACE=monospace><b>Option Explicit</font></b> set? referencing form main from code could try and instantiate it a second time, which would give you the error. <p>mr s. <;)<br><a href=mailto: > </a><br><a href= > </a><br>why does it never do what is says it does in the manual?
 
what type of object is socket2? <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top