Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dialer Classes?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00290669
Message ID:
00301477
Vues:
61
Harry,

My previous post had some errata in the HangUp() function. Below is the corrected version
FUNCTION HangUp
  
    DECLARE INTEGER CloseHandle IN Win32API;
      INTEGER hObject
  
    LOCAL lccmnd, lnresult, lnport, lnwritten
    STORE 0 TO lnresult, lnwritten
    lnport = This.nPort
    lccmnd = 'ATH0' + CF_TEXT
    lnresult = WriteFile(lnport, @lccmnd, LEN(lccmnd), @lnwritten, 0)
    IF lnresult # 0
      = FlushFileBuffers(lnport)
       * Close up
      = CloseHandle(lnport)
    ELSE
      lnresult = GetLastError()
    ENDIF
    RETURN lnresult
  ENDFUNC
The error is in red, Sorry.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform