DEFINE DIALOG oDlg RESOURCE "Teste"
oDlg:bCommNotify = { | nComm, nStatus | FWBytesAtPort( nComm, nStatus,oMesa ) }
ACTIVATE DIALOG oDlg CENTER;
ON INIT ( if(FWlInitModem(TBitsSeg,TPortcom,oDlg,cFWTitle),EnableCommNotification( nComm, oDlg:hWnd, 20, 20 ),));
VALID ( CloseComm( nComm ), .t. )
Sr. Antonio, é possível usar o código acima na WINDOW principal?