«

»

Nov 03

Print this Post

Is ComboBox Selection Selected Function (isSelected)

Checks to values if equal returns ” selected” otherwise returns “”. Use to specify default select box option when pulling external data

function isSelected(thisValue,defValue)
	if isNull(thisValue) then
		thisValue = ""
	else
		thisValue = cstr(thisValue)
	end if
	if isNull(defValue) then
		defValue = ""
	else
		defValue = cstr(defValue)
	end if
	if thisValue = defValue then
		isSelected = " selected"
	else
		isSelected = ""
	end if
end function

Permanent link to this article: https://www.wperry.net/code/isselected/

Leave a Reply

Your email address will not be published. Required fields are marked *