Loading...
 

AddFormatName

AddFormatName

AddFormatName(windowID, oboxID), AddFormatName(, oboxID), AddFormatName

Parameters: Identifier of a window and an object box

Stack
Stack Position Description
Stack(In) Top String
Stack(Out) Top -

Works basically like SetFormatName. In addition to the function of this one, all active formats are also added to the new list.

This can mainly be used to vary a different format list, e.g. to first remove a format entry with ClearFormat and then redefine it with SetFormat.

To achieve the opposite effect, i.e., to delete a format list for the currently selected formats (the formats of the activated format list), use the RemoveFormatName function.

Example:
// erstellen einer Formatliste "basis" SetFormatName(,obx) ["CX_PERSON::name" COLOR BLUE ] SetFormat(,obx) // in "basis" wird der Name blau dargestellt ["CX_PERSON::firstName" COLOR BLUE ] SetFormat(,obx) // in "basis" wird der Vorname blau dargestellt //Ableiten dieser Liste "abl" AddFormatName(,obx) // dies kopiert die aktuelle Formatliste "CX_PERSON::name" ClearFormat(,obx) // entfernt dieses Format nur aus "abl" ["CX_PERSON::name" COLOR RED ] SetFormat(,obx) // in "abl" wird der Name nun rot dargestellt pers1 FillObox(,obx) //dieser Eintrag erscheint mit name: rot, vorname: blau "basis" SetFormatName(,obx) pers2 FillObox(,obx) //dieser Eintrag erscheint mit name: blau, vorname: blau