$Lstr Get Image and $Lstr Set Image: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:$Lstr_Get_Image and $Lstr_Set_Image}} | {{DISPLAYTITLE:$Lstr_Get_Image and $Lstr_Set_Image}} | ||
<span class="pageSubtitle" | <span class="pageSubtitle">and $Lstr_Set_Image: Longstring to/from image</span> | ||
<p class="warning">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.</p> | <p class="warning">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.</p> |
Revision as of 21:21, 22 November 2011
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.
$Lstr_Get_Image accepts one argument and returns a longstring result. $Lstr_Set_Image accepts two arguments and returns a numeric result.
The first argument to both $Lstr_Get_Image and $Lstr_Set_Image is a string containing the name of the image to which the function applies. This is a required argument.
The second argument to $Lstr_Set_Image is the longstring from which the image indicated by argument 1 is to be set.
Syntax
<section begin="syntax" /> %LSTR = $Lstr_Get_Image(image) <section end="syntax" />
%RC = $Lstr_Set_Image(image, value)
$Lstr_Get_Image and $Lstr_Set_Image can be useful for maintaining multiple copies of or versions of an image in a single request, for maintaining one or more global copies of an image (using global LONGSTRINGs) without using the GTBL space required by the standard GLOBAL IMAGE feature and for maintaining copies of an image associated with a session that survives a logout (using session LONGSTRINGs).
$Lstr_Get_Image and $Lstr_Set_Image are new in Version 6.3 of the Sirius Mods.