>For dial-up and connect used Microsoft Communication Control.
>As hereon move over to terminal session ?
I don't understand - all the MSCOMM control does is provide basic raw access to the serial port; it has no capability AFA terminal emulation, file transfer, etc. You're probably better off simply launching some form of terminal emulator as an external program; HyperTerminal comes with Windows, and there are any number of very capable comm apps that do terminal emulation; many of them offer scripting or an automation model (PCAnywhere, ProComm, Telix).
If you want to write your own, VFP is a poor platform for doing it; I'd suggest C or VB or Delphi.
Once you open the port with MSCOMM, you're committed to using MSCOMM - you can't hand off the port to another comm handler without closing the port in MSCOMM, which will drop the connection.
What are you trying to do?