FoxInCloud
setting picture property at runtime
Good day Thierry,
If I set the picture property of an image control at run time, It does not work in web mode. If I set it at design time, the picture shows on the browser. Do I need to set an additional property?
Thanks
Hi Bennet,
You can either:
- add 'picture' to
.wcPropSave
at design time - in
.Init()
:
wcPropSaveEdit(this, 'Picture')
return dodefault()
Thanks for your help. It still refused to work after applying your suggestion. On critical observation, I discovered that the path being returned by getfile() or wgetfile() is always transformed in web mode. Any \n in the path is replaced with CR + LF. For example 'c:\Test\users\BENNET\newhpfiles\triai2\images\second.png' was replaced with 'C:\Test\Users\BENNETewhpfiles\trial2\Images\second.png'. When I hard coded the path, It worked. How can I stop the transformation?
Thanks