ComboBoxGetRowTag (comboName As String) As String

 

Returns a ÒhiddenÓ text associated with the currently selected text of ComboBox comboName

  

Parameters:

 

Name

Type

Description

comboName

String

ScreenFieldName of the control.

Ctrl+Click onto a ComboBox to retrieve its comboName

(= ScreenFieldName)

 

Returns:

 

Type

Value

Description

String

any text

A ÒhiddenÓ text associated with the currently selected text of ComboBox comboName

 

Available in:

 

WindowMain

WindowLink

YES

YES

 

 

Hint: You can find references to XojoScripts which make use of this function by sending the following SQL statement to the database:

Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%ComboBoxGetRowTag%'

 

Example XojoScript:

 

// Price and Text are stored with each category item in a combobox.

// Upon selection change we retrieve this text, parse it and display

// price and text in their corresponding textfields

 

Dim priceTag As String

priceTag = ComboBoxGetRowTag("imCO_lnk_p01_CodeCategory")

 

SetText("imTF_lnk_p01_Price",NthField(priceTag,EndOfField,1))

SetText("imTF_lnk_p01_CategoryText",NthField(priceTag,EndOfField,2))