InputFieldObject Method |
[Top] [Chapter] [Previous] [Next] |
Applies to Declaration int InputFieldObject(string Name, string Command, string DefaultText) Description Creates a text object. This are single objects which are updated by the the event OnTextObjectGetText.
The following field names are predefined: "PAGE" : The current page number. Parameter "Command" must be empty "NEXTPAGE": Page number of the next page, empty string if last page "PRIORPAGE": Previous page number, empty string if first page "NUMPAGES": Count of pages "DATE": The current date "TIME": The current time "SECTIONPAGES": Count of pages in this section
The Products RTF2PDF and TextDynamic also define this status items: ENGINE_DLLUPTIME: seconds since loading the engine ENGINE_UPTIME: seconds the engine object is alive ENGINE_COUNT: total count of created engine objects since loading the engine ENGINE_VERSION: the engine version, for example "3.50.5" ENGINE_INFO: display dll-uptime, count, version and current date in one sentence. SYSTEM_UPTIME: display the system uptime (using GetTickCount API)
When you need to create HTML text you can use a field with the name "HTMLCODE" and any custom code as "command" to insert custom HTML tags into the HTML text. Example: This code inserts page numbering objects: IWPTextCursor TextCursor; TextCursor = WpdllInt1.Memo.TextCursor; TextCursor.InputFieldObject("PAGE", "", "1"); TextCursor.InputText("/"); TextCursor.InputFieldObject("NUMPAGES", "", "9");
Note: The following action names are available. They can be used with wpaProcess or in the menus defined inside the PCC file.
InsertTextFieldPAGE, InsertTextFieldNEXTPAGE, InsertTextFieldPRIORPAGE, InsertTextFieldNUMPAGES, InsertTextFieldSECTIONPAGES, InsertTextFieldDATE, InsertTextFieldTIME,
Note: Also see function InputObject(). |