Partager via


CREATE LABEL Command

Opens the Label designer so you can create a label.

CREATE LABEL [FileName | ?] [NOWAIT] [SAVE] [WINDOW WindowName1]
   [IN [WINDOW] WindowName2 | IN SCREEN

Parameters

  • FileName
    Specifies the file name for the label. If you don't specify an extension for the file name, Visual FoxPro automatically assigns an .lbx extension.

  • ?
    Displays the Create dialog box that prompts you to name the label being created.

  • NOWAIT
    Continues program execution after the Label designer is opened. The program doesn't wait for the Label designer to be closed, but continues execution on the program line immediately following the line that contains CREATE LABEL NOWAIT. If you omit NOWAIT when CREATE LABEL is issued in a program, the Label designer is opened and program execution pauses until the Label designer is closed.

    Including the NOWAIT option has no effect on the CREATE LABEL command when issued from the Command window.

  • SAVE
    Leaves the Label designer open after another window is activated. If you omit SAVE, the Label designer is closed when another window is activated.

    Including SAVE has no effect when issued from the Command window.

  • WINDOW WindowName1
    Specifies a window whose characteristics the Label designer takes on. For example, if the window is created with the FLOAT option of DEFINE WINDOW, the Label designer can be moved. The window doesn't have to be active or visible, but it must be defined.

    The Label designer has a default size that can be larger than the window from which it takes its characteristics. In this case, the Label designer still assumes the characteristics of the window in which it is placed. The upper-left corner of the Label designer is placed at the same coordinates as the upper-left corner of the window, and extends beyond the window's borders.

  • IN [WINDOW] WindowName2
    Specifies a parent window in which the Label designer is opened. The Label designer doesn't assume the characteristics of the parent window and cannot be moved outside the parent window. If the parent window is moved, the Label designer moves with it.

    The parent window must first be defined with DEFINE WINDOW, and must be visible to access the Label designer.

  • IN SCREEN
    Specifies that the Label designer is explicitly opened in the main Visual FoxPro window, after the Label designer has been placed in a parent window. A Label designer is placed in a parent window by including the IN WINDOW clause.

Remarks

CREATE LABEL lets you create labels in standard label formats or design your own custom labels. You can also use the Label Wizard to create labels.

See Also

LABEL | MODIFY LABEL | Label Wizard | Label Designer | Creating Reports and Labels | Creating a Mailing Label Layout