>>thanks for your answer. >>but it doesn't work again! > >Sorry I'm out of ideas. I guess you'll have to look more closely at the sample code I pointed you to.
Maybe an inkey() will do
DOWHILETHISFORM.tcpwaage.OBJECT.state<>7 *-- wait until connected
=inkey(.1)
ENDDO