Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TCP connection in runtime
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01332181
Message ID:
01332196
Vues:
7
Add DOEVENTS to the wait loop to let VFP process events.
DO WHILE THISFORM.tcpwaage.OBJECT.state<>7
    *-- wait until connected
    DOEVENTS
ENDDO
Check http://fox.wikis.com/wc.dll?Wiki~WinSockOCXSample

>It doesn't work without wait window, even if if i wait for 50seconds or more.
>
>*-- state 7 = CONNCTED
>*-- state 6 = CONNECTING
>DO WHILE THISFORM.tcpwaage.OBJECT.state<>7
> *-- wait until connected
>ENDDO
>
>the connection needs a user input, without this it doesn't work.
>
>IF THISFORM.tcpwaage.OBJECT.state<>7
> THISFORM.tcpwaage.OBJECT.CONNECT("192.168.100.222",1234)
> WAIT WINDOW "Please press key"
> IF THISFORM.tcpwaage.OBJECT.state<>7
> *-- could not connect
> ENDIF
>ENDIF
>
>When the wait window is removed, it doesn't work in runtime,
>in VFP there is no problem, even without that wait window.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform