$Lstr Get Image and $Lstr Set Image: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 6: | Line 6: | ||
<var>$Lstr_Get_Image</var> returns the contents of an image as a longstring. <var>$Lstr_Set_Image</var> sets the contents of an image from a longstring. | <var>$Lstr_Get_Image</var> returns the contents of an image as a longstring. <var>$Lstr_Set_Image</var> sets the contents of an image from a longstring. | ||
< | ==Syntax== | ||
<p class="syntax"><section begin="syntax" />%lstr = $Lstr_Get_Image(image) | |||
<section end="syntax" /></p> | |||
<p class="code">%rc = $Lstr_Set_Image(image, value)</p> | |||
===Syntax terms=== | |||
<table class="syntaxTable"> | |||
<tr><th>%lstr</th> | |||
<td>A [[Longstrings|longstring]] to receive the contents of the image.</td></tr> | |||
<tr><th>%rc</th> | |||
< | <td>A numeric variable to receive the count of bytes set in the image.</td></tr> | ||
< | |||
< | <tr><th>image</th> | ||
</ | <td>A string containing the name of the image to which the function applies. This is a required argument.</td></tr> | ||
< | |||
< | <tr><th>value</th> | ||
<td>The longstring from which the image in the <var class="term">image</var> argument is to be set.</td></tr> | |||
</ | </table> | ||
< | |||
</ | |||
<var>$Lstr_Get_Image</var> and <var>$Lstr_Set_Image</var> can be useful for maintaining | ==Usage notes== | ||
<ul> | |||
<li><var>$Lstr_Get_Image</var> and <var>$Lstr_Set_Image</var> can be useful for maintaining : | |||
<ul> | |||
<li>Multiple copies of or versions of an image in a single request | |||
<li>One or more global copies of an image (using global Longstrings) without using the GTBL space required by the standard GLOBAL IMAGE feature | |||
<li>Copies of an image associated with a session that survives a logout (using session Longstrings). | |||
</ul></ul> | |||
<h2>Products authorizing $Lstr_Get_Image and $Lstr_Set_Image</h2> | <h2>Products authorizing $Lstr_Get_Image and $Lstr_Set_Image</h2> | ||
Line 40: | Line 47: | ||
<li>[[Japanese functions]]</li> | <li>[[Japanese functions]]</li> | ||
<li>[[Sir2000 Field Migration Facility]]</li> | <li>[[Sir2000 Field Migration Facility]]</li> | ||
</ul> | </ul> | ||
[[Category:$Functions|$Lstr_Get_Image and $Lstr_Set_Image]] | [[Category:$Functions|$Lstr_Get_Image and $Lstr_Set_Image]] |
Revision as of 23:17, 25 October 2012
$Lstr_Get_Image and $Lstr_Set_Image: Longstring to/from image
Most Sirius $functions have been deprecated in favor of Object Oriented methods. There are no OO equivalents for the $Lstr_Get_Image and $Lstr_Set_Image functions.
$Lstr_Get_Image returns the contents of an image as a longstring. $Lstr_Set_Image sets the contents of an image from a longstring.
Syntax
<section begin="syntax" />%lstr = $Lstr_Get_Image(image) <section end="syntax" />
%rc = $Lstr_Set_Image(image, value)
Syntax terms
%lstr | A longstring to receive the contents of the image. |
---|---|
%rc | A numeric variable to receive the count of bytes set in the image. |
image | A string containing the name of the image to which the function applies. This is a required argument. |
value | The longstring from which the image in the image argument is to be set. |
Usage notes
- $Lstr_Get_Image and $Lstr_Set_Image can be useful for maintaining :
- Multiple copies of or versions of an image in a single request
- One or more global copies of an image (using global Longstrings) without using the GTBL space required by the standard GLOBAL IMAGE feature
- Copies of an image associated with a session that survives a logout (using session Longstrings).