'---------------------------------------------------------------------- ' ' Return True/False depending on whether a form field is present. ' Typically used to detect if a checkbox in a form is checked or ' not. Unchecked checkboxes are omitted from the form content. ' '---------------------------------------------------------------------- Function FieldPresent(key As String) As Integer Dim i As Integer FieldPresent = False ' Assume failure If (CGI_NumFormTuples = 0) Then Exit Function ' Stop endless loop For i = 0 To (CGI_NumFormTuples - 1) If CGI_FormTuples(i).key = key Then FieldPresent = True ' Found it Exit Function ' ** DONE ** End If Next i ' Exit with FieldPresent still False End Function