Consider the following code:
printdata Array("She"," sells", " seashells")
printdata Array(" by", " the")
printdata Array(" seashore.")
Sub printdata(objArray)
Dim val
For each val in objArray
response.write val
Next
End Sub
This code prints the sentence: She sells seashells by the seashore. While the example isn't very useful, this technique is ideal if you have a function that allows you to customize a form. You could then call the function with only the parameters you want to
customize. The call might look something like this:
createForm array("Height:34","Width:22")
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.