Sign in Join
FPDoc Onlineexperiment

THTMLWriter.EmitComboBox procedure

Member of THTMLWriterpublicIn unit WHtml

Emits HTML select dropdown list

Declaration

pascal
procedure EmitComboBox(const Name: string; const Value: string; 
 Items: TStrings; UseValues: Boolean)
procedure EmitComboBox(const Name: string; const Value: string; 
 Items: TStrings)

Arguments

Name

Select field name

Value

Initially selected option value

Items

String list containing option values

UseValuesTrue to parse name=value pairs from items

Description

Emits an HTML SELECT tag with OPTION elements from the provided string list. This is an overloaded method that can use name=value pairs when UseValues is True.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.