I/O ActiveX Control in Visual FoxPro
Inserting the Control:
  1. From the menu: "View" -> "Form Controls Toolbar".
  2. Select "OLE Container Control" on Form Controls Toolbar.
  3. Drop control on form.
  4. Select "Insert Control".
  5. Scroll down and select "IO Control".
  6. Click "OK".
  1. From the menu: "Tools", "Options", "Controls".
  2. Select "ActiveX Controls".
  3. Scroll down and select "IO Control".
  4. Click "OK".
  5. On "Forms Control Toolbar", "View Classes" -> "ActiveX".
  6. Select "IO Control" from the "Forms Control Toolbar" and drop it on the form.
ThisForm.Olecontrol1.Open("COM2:", "baud=9600 parity=N data=8 stop=1");
ThisForm.Olecontrol1.SetHandshaking(2); 'Serial ports Only. 0 = None, 1 = Xon/Xoff, 2 = Hardware
ThisForm.Olecontrol1.WriteString("Hello World ");
Note: Olecontrol may have a different number than 1 as in the example. This number depends on if you have other controls that you are using.

Home Page | Site Map | Copyright (c) 1998 by JSPayne of Cortland NY