Jeg har lige fundet ud af at "FormStringField" er en funktion.
Function FormStringField(Name, Title, Comment, DefaultValue, Required, Size)%> <%FormBeforeNameLayout()%><%=Title%><%if Required then%> <%end if%>:<%FormAfterNameLayout()%> <%FormBeforeFormLayout()%><input type="text" name="String_<%=Name%>" size="<%=Size%>" value="<%if not IsNew then response.write(rs(Name)) else response.write(DefaultValue) end if%>"><%FormNextLineCommentLayout(Comment)%><%FormCommentLayout(Comment)%><%FormAfterFormLayout()%> <%Separator()%> <%if Required then zValiDateCode = zValiDateCode & "if(!required(theForm.String_" & Name & ", """ & Title & """)) return false;" zValiDateCode = zValiDateCode & Chr(13) end if End Function
drop down funktionen:
Function FormStringDropdownField(Name, Title, Comment, Required, Values)%> <%FormBeforeNameLayout()%><%=Title%><%if Required then%> (Required)<%end if%>:<%FormAfterNameLayout()%> <%FormBeforeFormLayout()%><select name="String_<%=Name%>" size="1"> <% Temp = Split(Values, ";;") for each x in Temp%> <option value="<%=x%>" <%if not IsNew then%><%if x = rs(Name) then%> selected<%end if%><%end if%>><%=x%></option> <%Next%> </select><%FormNextLineCommentLayout(Comment)%><%FormCommentLayout(Comment)%><%FormAfterFormLayout()%> <%Separator()%> <%if Required then zValiDateCode = zValiDateCode & "if(!required(theForm.String_" & Name & ", """ & Title & """)) return false;" zValiDateCode = zValiDateCode & Chr(13) end if End Function
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.