Skip to content

libcURL.MultipartForm.GetElement

Andrew Lambert edited this page Nov 26, 2022 · 4 revisions

Method Signatures

 Function GetElement(Index As Integer) As libcURL.MultipartFormElement
 Function GetElement(Name As String) As Integer

Parameters

GetElement(Integer)

Name Type Comment
Index Integer The index of the element to get.

GetElement(String)

Name Type Comment
Name String The name of the element to get.

Return value

If you specify the name this method returns the index of the first element with that name, or -1 if no element matches the name. If you pass the index then this method returns a reference to the MultipartFormElement at that index; if the index is out of bounds then an OutOfBoundsException will be raised.

Remarks

This method allows you to enumerate the form elements. Pass the name of the form element to get its index, pass the index to get a reference to the element itself.

Clone this wiki locally