Skip to content

libcURL.MultipartForm.Operator_Convert

Andrew Lambert edited this page Jun 11, 2015 · 18 revisions

#libcURL.MultipartForm.Operator_Convert

##Method Signature

 Sub Operator_Convert(FromDict As Dictionary)

##Parameters

Name Type Comment
FromDict Dictionary An HTML form.

##Notes This method overloads the conversion operator(=), permitting implicit and explicit conversion from a Dictionary into a MultipartForm. The dictionary contains NAME:VALUE pairs comprising HTML form elements: NAME is a string containing the form-element name; VALUE may be a string or a FolderItem.

 Dim Form As New Dictionary
 Form.Value("Hello") = "world!"
 Form.Value("File") = SomeFolderItem
 Dim curlform As libcURL.MultipartForm = Form ' convert

Clone this wiki locally