'---------------------------------------------------------------------- ' ' Get the value of a "small" form field given the key ' ' Signals an error if field does not exist ' '---------------------------------------------------------------------- Function GetSmallField(key As String) As String Dim i As Integer For i = 0 To (CGI_NumFormTuples - 1) If CGI_FormTuples(i).key = key Then GetSmallField = Trim$(CGI_FormTuples(i).value) Exit Function ' ** DONE ** End If Next i ' ' Field does not exist ' Error ERR_NO_FIELD End Function