TFormer_AddNewForm

Repository Access · String encodings

Definition

Windows: ANSI; Unix: UTF-8

ERRCODE TFormer_AddNewForm(HTFORM pInstance, LPCSTR pszProjectName, LPCSTR pszFormName, LPCSTR pszFormDesc, LPCSTR pszFormDesign, LPCSTR pszFormFile);

Windows only: UTF-16

ERRCODE TFormer_AddNewFormW(HTFORM pInstance, LPCWSTR pszProjectName, LPCWSTR pszFormName, LPCWSTR pszFormDesc, LPCWSTR pszFormDesign, LPCWSTR pszFormFile);

Contract

Adds a new Form to the given Project.

Adds a new FormLayout to the Project specified by pszProjectName and creates the corresponding Project file. If pszFormFile is empty, this function creates an empty FormLayout. The name of the FormLayout must follow the Naming Rules.

Returns

ErrOk (0) in case of success, non-zero if an error occurred

Parameters

Parameter / typeDescription
pInstanceHTFORM


The TFORMer instance provided by a previous call to TFormer_Init

pszProjectNameLPCSTR / LPCWSTR


The name of the Project in the Repository.

pszFormNameLPCSTR / LPCWSTR


The name of the FormLayout to be created.

pszFormDescLPCSTR / LPCWSTR


The (optional) description of the FormLayout, may be empty or NULL

pszFormDesignLPCSTR / LPCWSTR


Design tool for editing this FormLayout (not used anymore).

pszFormFileLPCSTR / LPCWSTR


Template file for new FormLayout (optional).

Search documentation

Search in
More scopes
Additional scopes

All contents