Problem iOS8 - set filename to folderpath

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Problem iOS8 - set filename to folderpath

Post by ChrisMukrow » Tue Oct 07, 2014 2:52 pm

What am I doing wrong or is this a bug? It works fully in iOS7 and lower. Thanks, Chris

Code: Select all

set the filename of image "imageHolder" to specialFolderPath("engine") & "/images/20.jpg"

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problem iOS8 - set filename to folderpath

Post by Klaus » Tue Oct 07, 2014 3:23 pm

Hi Chris,

BRACKETS! :D
...
set the filename of image "imageHolder" to (specialFolderPath("engine") & "/images/20.jpg")
...

Always use brackets when concatenating file- and/or object-names in LC!


Best

Klaus

ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: Problem iOS8 - set filename to folderpath

Post by ChrisMukrow » Tue Oct 07, 2014 3:39 pm

Hi Klaus,

Thanks for the tip, but it doesn't fix it :(

Best, Chris

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problem iOS8 - set filename to folderpath

Post by Klaus » Tue Oct 07, 2014 4:21 pm

Hi Chris,

hmmmm, try this to be sure ther IS in fact an image:
...
put (specialFolderPath("engine") & "/images/20.jpg") into tFile
answer (there is a file tFile)
...
If the dialog shows FALSE, then you need to check your folder structure again 8)

And don't forget that iOS and Adroid have CASE SENSITIVE file systems -> images <> Images


Best

Klaus

ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: Problem iOS8 - set filename to folderpath

Post by ChrisMukrow » Tue Oct 07, 2014 8:35 pm

Hi Klaus,

Okay strange.. The code returns true in iOS7 and false in iOS8 and the url is correct.

Chris

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problem iOS8 - set filename to folderpath

Post by Klaus » Tue Oct 07, 2014 9:59 pm

Oh!? :shock:

ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: Problem iOS8 - set filename to folderpath

Post by ChrisMukrow » Wed Oct 08, 2014 10:17 am

This bug is fixed in 6.6.4 RC2, bugreport: http://quality.runrev.com/show_bug.cgi?id=13583

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problem iOS8 - set filename to folderpath

Post by Klaus » Wed Oct 08, 2014 12:04 pm

Ah! :D




Your message contains 6 characters. The minimum number of characters you need to enter is 10.

Post Reply