psUrl - cWebImage
The URL of the image to display in the Image control
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
{ WebProperty=Client }
Property String psUrl
| Access Type | Syntax |
|---|---|
| Read Access: | WebGet psUrl to StringVariable |
| Write Access: | WebSet psUrl to StringVariable/Value |
Description
Set psURL the URL of the image you wish to insert in the Image control.
Object oImage is a cWebImage
Set psUrl to "Images/HappyFace.png"
//...
End_Object
In the above example, the URL represents an image (HappyFace.png) located is in the Images sub-folder of the web application's URL. Any image that is located in the web application's URL (or a sub folder) can be referenced in this way.
Object oImage is a cWebImage
Set psUrl to "https://www.dataaccess.com/images/DAE_DataFlex_logo.png"
//...
End_Object
In the above example, the entire URL to an image file (DAWlogo.gif) is specified. This file may be located in any reachable URL.
Alternatively you can set the psLocalFile property to reference a file in the server's local file system. The psLocalFile and psURL properties are mutually exclusive. You should use one or the other, but not both.
About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.
About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.