URL Property

Measurement Studio User Interface

URL Property

Syntax

CWImage.URL

Data Type

String

Purpose

Specifies the path to the image.

Remarks

The path is in the form of a URL (Uniform Resource Locator). The simplest form of a URL string is a path and a filename. However, URLs can include files retrieved by FTP or HTTP over the internet or the World Wide Web.

Listed below are some example URLs:

c:\windows\circles.bmp

http://www.ni.com/image.bmp

ftp://ftp.ni.com/images/image.bmp

This property does not apply to CWImage objects representing captions.

Example

'Set the URL to circles.bmp
CWButton1.OffImage.CWImage.URL = "c:\windows\circles.bmp"

'The Off Image must be loaded from the file each
'time the control is loaded.
CWButton1.OffImage.CWImage.SaveLink = True

'Reload the image from the new URL
CWButton1.OffImage.CWImage.Reload

See Also

SaveLink

Reload