How to open an image file?

Scott Kane scott at proherp.com
Sun Aug 28 19:46:20 EDT 2005


> put URL "binfile:/C:/image.gif" into image "displayImage"
> put URL "binfile:/C://image.gif" into image "displayImage"
> put URL "C:/image.gif" into image "displayImage"
> 
> When I open an image from the development area (then it works), it 
> says that the source of the image is C://image.gif. So why doesn't it 
> open it in case #2?

Because it's formated for *nix.  Take a look at the difference in
your code at the beginning.

put URL "binfile:/C:/

Is the DOS\Windows path,

put URL "binfile:/C:// 

Doesn't exist as a path

put URL "C:

Works because it's a window/DOS path.

Scott Kane






More information about the use-livecode mailing list