Passa al contenuto principale

Class ScriptBuilderText

Namespace: TecnoPack.Interactivity
Assembly: CO0002_Templ_FlowpackHMI_V00_26_M.dll

Batch script builders for text, number, and password prompts.

public static class ScriptBuilderText

Inheritance

object ← ScriptBuilderText

Methods

GenerateNumberPromptScript(string, double?, double?)

Generates a number input prompt with optional min/max constraints.

public static string GenerateNumberPromptScript(string message, double? min, double? max)

Parameters

message string

Prompt message.

min double?

Optional minimum inclusive (null for none).

max double?

Optional maximum inclusive (null for none).

Returns

string

Batch script string.

GeneratePasswordPromptScript(string)

Generates a masked password prompt using PowerShell (for secure input).

public static string GeneratePasswordPromptScript(string message)

Parameters

message string

Prompt message.

Returns

string

Batch script string.

GenerateTextPromptScript(string, string, bool)

Generates a console prompt for free text input.

public static string GenerateTextPromptScript(string message, string defaultValue, bool allowEmpty)

Parameters

message string

Prompt message.

defaultValue string

Optional default value displayed in brackets.

allowEmpty bool

If true, empty input is written as empty line.

Returns

string

The complete batch script string.

  • Methods
    • GenerateNumberPromptScript(string, double?, double?)
    • GeneratePasswordPromptScript(string)
    • GenerateTextPromptScript(string, string, bool)