Logo

Hacker’s Guide to Visual FoxPro
An irreverent look at how Visual FoxPro really works. Tells you the inside scoop on every command, function, property, event and method of Visual FoxPro.

@ … Say-BMP and OLE Objects

This is a funny command. Most @ … SAY commands are purely for passive output. This command combines the typical “display this field” command with the option of specifying actions for the OLE object to perform. Most of the functionality of this command has been replaced with OLEControls and OLEBoundControls and their DoVerb methods.

We can’t see a reason for using this command in new code, rather than using the new OLEBoundControl, OLEControl or Image controls. Placement and sizing can be controlled in the visual design tools, or with the associated Top, Left, Width and Height properties. The STYLE keyword maps to the BackStyle property for Images. The CENTER, ISOMETRIC and STRETCH keywords are available through the Stretch property, and the VERB keyword has been replaced with the DoVerb method. We detail this functionality to aid you in transporting a 2.x application to Visual FoxPro, but will be surprised if you can find a use for this command in Visual FoxPro.

Example

@ 0,0 SAY smplgrph.myGraph VERB "Edit"

See Also

DoVerb, Image, OLEBoundControl, OLEControl, Registration Database