Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
POS Display stand
Message
 
 
À
03/05/2007 03:23:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01222097
Message ID:
01222815
Vues:
8
You can use Windows Mscomm control to communicate with a serial port.

  • Serial Data Parameters Detector for VFP File #19165
  • Good practice in using MSCOMM.OCX in VFP File #9636
  • Basic Serial Communication with MSCOMM File #9336

    >
    >I have a question for programing with POS display stand
    >
    >I have some simple code ( VB code ) as below :
    >            Dim customerdispdata As String
    >            customerdispdata = "Pay"
    >            Dim paystr As String
    >            paystr = "HKD" & Trim(Format(payamt, "###,##0.00"))
    >            customerdispdata = customerdispdata & paystr
    >
    >            On Error Resume Next
    >            AxNETComm1.CommPort = display_CommPort
    >            AxNETComm1.set_Settings("9600,N,8,1")
    >            AxNETComm1.PortOpen = True
    >            AxNETComm1.set_Output(Chr(12) + customerdispdata)
    >            AxNETComm1.PortOpen = False
    >
    >This VB code is copy from our old system, its work in order.
    >
    >Please exchage the code into VFP command.
    --sb--
  • Précédent
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform