Append General, Modify General
These two commands work with a table's ActiveX-based general fields. APPEND allows the addition of new data or the erasure of a field. MODIFY displays the field for editing or viewing.
Usage |
APPEND GENERAL FieldName [ FROM FileName | FROM MEMO MemoField ] [ DATA cDataString ] [ LINK ] [ CLASS cClassName ] |
Parameter |
Value |
Meaning |
FieldName |
Name |
Name of the general field where the data is placed. |
FileName |
Name |
Source of the data, if data is added from disk. |
MemoField |
Name |
VFP 3/Mac only: imports picture fields into general fields. |
cDataString |
Character |
An initial data string (like PARAMETERS in FoxPro) to send to the application. Many OLE servers accept CF_TEXT formatted strings and use them as their initial data. |
cClassName |
Character |
The OLE Class name, as listed in the Registry. |
It's a little-known fact that APPEND GENERAL FieldName with no further arguments erases the data contained inside the general field. |
Usage |
MODIFY GENERAL FieldName1 [, FieldName2... ] [ NOMODIFY ] [ NOWAIT ] [ WINDOW DefinitionWindow ] [ IN WINDOW ContainerWindow] | IN SCREEN | IN MACDESKTOP ] |
Parameter |
Value |
Meaning |
FieldNamen |
Name |
Specifies the field name(s) to be displayed. |
DefinitionWindow |
Name |
Specifies the window whose characteristics (size, color scheme, close box, whether it floats) are duplicated in the window created to display the general field. |
ContainerWindow |
Name |
Names the window in which the general field editing window is created and in which editing takes place. |
Example |
#DEFINE tab CHR(09) #DEFINE crlf CHR(13)+CHR(10) LOCAL cTestData cTestdata = "" + tab + "X-Axis" + crlf + ; "Command" + tab + "431" + crlf + ; "Function" + tab + "332" + crlf + ; "Property" + tab + "211" + crlf + ; "Method" + tab + "43" + crlf CREATE TABLE SmplGrph (mygraph G) APPEND BLANK APPEND GENERAL MyGraph CLASS "MSGraph" DATA cTestdata MODIFY GENERAL MyGraph NOMODIFY |
See Also |
@...SAY - BMP and OLE Objects, OLEBoundControl, OLEControl, Registration Database |