Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP talking to a modem
Message
De
31/03/2005 04:48:38
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00999971
Message ID:
01000206
Vues:
18
bag=createobject("MSCOMMLib.MSComm")
bag.CommPort = 8
bag.Settings = "9600,N,8,1"  && 14.4 Kbaud, No Parity,
                                          && 8 data Bits, 1 Stop Bit

bag.PortOpen = .T.


GEL=BAG.INPUT

IF LEN(ALLTRIM(GEL))=0 
  ?"no number"
ENDIF

ilk=AT('+CLIP: "',ALLTRIM(gel),1)+8
son=AT('",129',ALLTRIM(gel),1)
arayan=SUBSTR(gel,ilk,son-ilk)
?"caller id",arayan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform