file won't load

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
mister
Posts: 39
Joined: Thu Nov 27, 2014 9:03 pm

file won't load

Post by mister » Thu Jan 14, 2016 5:44 pm

Shouldn't this work? There is content in the file. it will load using the contents section of the property inspector. this is the 8th card of my stack and all the other "load files" calls work fine. i don't get it.

Code: Select all

 put specialFolderPath("documents") & "/ route.txt" into tFile
   put URL("file:" & tFile) into field "rollCall2" of card "list"
Larry

ittarter
Posts: 151
Joined: Sat Jun 13, 2015 2:13 pm

Re: file won't load

Post by ittarter » Thu Jan 14, 2016 5:47 pm

Is there supposed to be a space in front of route.txt, after the slash?

mister
Posts: 39
Joined: Thu Nov 27, 2014 9:03 pm

Re: file won't load

Post by mister » Thu Jan 14, 2016 5:56 pm

Thank you

The littlest things that evade the eye sometimes.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: file won't load

Post by dunbarx » Thu Jan 14, 2016 5:59 pm

Hi.

A pathName should not have spurious spaces anywhere, only, perhaps within the explicit name of a folder, as in "/" & "my folder".

But you already answered at least one question. What happens when you delete that space?

Craig Newman

Post Reply