Nov 03

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 = ""
		thisValue = cstr(thisValue)
	end if
	if isNull(defValue) then
		defValue = ""
		defValue = cstr(defValue)
	end if
	if thisValue = defValue then
		isSelected = " selected"
		isSelected = ""
	end if
end function

Permanent link to this article:

Leave a Reply

Your email address will not be published.