Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dialer Classes?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00290669
Message ID:
00301477
Views:
60
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform