LineEnd (HttpRequest property): Difference between revisions
Jump to navigation
Jump to search
m (match syntax table to syntax template; edits, tags and links) |
mNo edit summary |
||
Line 8: | Line 8: | ||
<tr><th>%currentLineEnd</th> | <tr><th>%currentLineEnd</th> | ||
<td>The string variable that will be assignment the current value of <var>LineEnd</var>.</td></tr> | <td>The string variable that will be assignment the current value of <var>LineEnd</var>.</td></tr> | ||
<tr><th> | <tr><th>httpRequest</th> | ||
<td>A previously defined and instantiated <var>HttpRequest</var> object.</td></tr> | <td>A previously defined and instantiated <var>HttpRequest</var> object.</td></tr> | ||
<tr><th>newLineEnd</th> | <tr><th>newLineEnd</th> | ||
Line 23: | Line 23: | ||
<li>The <var>LineEnd</var> setting remains in effect unless the property is reset with another assignment. | <li>The <var>LineEnd</var> setting remains in effect unless the property is reset with another assignment. | ||
<li>For an example of code that uses the <var>LineEnd</var> property, see [[AddField (HttpRequest subroutine)#Example|this]] <var>AddField</var> example. | <li>For an example of code that uses the <var>LineEnd</var> property, see [[AddField (HttpRequest subroutine)#Example|this]] <var>AddField</var> example. | ||
</ul> | </ul> | ||
==Example== | ==Example== | ||
The <var>LineEnd</var> format is shown in the following fragment: | |||
<p class="code"> %HttpRequest:LineEnd = CRLF | <p class="code"> %HttpRequest:LineEnd = CRLF | ||
%HttpRequest:LineEnd = CR | %HttpRequest:LineEnd = CR | ||
%HttpRequest:LineEnd = LF | %HttpRequest:LineEnd = LF | ||
%HttpRequest:AddField( .... | %HttpRequest:AddField( .... | ||
</p | </p> | ||
==See also== | ==See also== |
Revision as of 20:07, 21 June 2011
Line-end sequence for POSTed Stringlist data (HttpRequest class)
The LineEnd settable property lets you select which of three line-end sequences to use when you add a file to form Post data by passing a Stringlist object to the AddField method.
Syntax
%currentLineEnd = httpRequest:LineEnd httpRequest:LineEnd = newLineEnd
Syntax terms
%currentLineEnd | The string variable that will be assignment the current value of LineEnd. |
---|---|
httpRequest | A previously defined and instantiated HttpRequest object. |
newLineEnd | Identifies the new line-end sequence to use for the Stringlist items being copied into the Post data. Each copied Stringlist item has a line-end sequence appended to it. The options you may specify are these LineEnd Enumeration values:
|
Usage notes
- The LineEnd property must be set before the AddField call that adds the form data.
- The LineEnd setting remains in effect unless the property is reset with another assignment.
- For an example of code that uses the LineEnd property, see this AddField example.
Example
The LineEnd format is shown in the following fragment:
%HttpRequest:LineEnd = CRLF %HttpRequest:LineEnd = CR %HttpRequest:LineEnd = LF %HttpRequest:AddField( ....
See also
- For more general information and background about using Enumerations, see "Enumerations".