Page 1 of 1
Resources and tutorials issue
Posted: Tue Mar 24, 2020 1:41 pm
by ajperks
I was disappointed to find the "Listing all unique words" Resources section no longer allows the code to be copied and the Tutorial for the same thing is incomplete and has bugs in it.
Does anyone have the working stack?
It isn't that I can't be bothered to work it out for myself, but it should be working and would speed up something I am working on.
Thank you all.
Re: Resources and tutorials issue
Posted: Tue Mar 24, 2020 2:06 pm
by Klaus
Do you mean this one:
http://lessons.livecode.com/m/2592/l/12 ... ce-of-text?
Hm, I can copy everything from that page!?
Code: Select all
function uniqueWords pString
local tWordsList
repeat for each word tWord in pString
add 1 to tWordsList[tWord]
end repeat
return the keys of tWordsList
end uniqueWords
Code: Select all
repeat with x = 1 to the number of words in pString
add 1 to wordsList[tWordsList x of pString]
end repeat
What am I missing?
Re: Resources and tutorials issue
Posted: Tue Mar 24, 2020 3:36 pm
by richmond62
I think the OP is missing something with his/her browser as I certainly have no problem
copying from that page.
Re: Resources and tutorials issue
Posted: Tue Mar 24, 2020 5:13 pm
by ajperks
Thank you, I suspect it is the Edge browser in win 10.
I will try another way.
Re: Resources and tutorials issue
Posted: Tue Mar 24, 2020 6:19 pm
by ajperks
I am sure it isn't the Browser. I tried Internet Explorer and that doesn't work saving the code either.
The item that fails to work is this shown in screenshot.
This is different from the Lessons example.
Re: Resources and tutorials issue
Posted: Tue Mar 24, 2020 7:10 pm
by Klaus
Please provide a link!
Re: Resources and tutorials issue
Posted: Tue Mar 24, 2020 7:21 pm
by bogs
Heh heh, that is the Resource center ajperks, which is a little different than copying from a browser per se.
When you click "Copy Script", setup a new stack (default size is more than adequate).
Then with the new stack selected and focused, either right click on it and choose "Paste Objects", or hit [ctrl + v] (win or lin) or I think it is [cmd + v] (mac).
At that point, you should see the following:

- Choices choices choices...
Re: Resources and tutorials issue
Posted: Tue Mar 24, 2020 7:56 pm
by Klaus
Resource center, AHA!

Re: Resources and tutorials issue
Posted: Tue Mar 24, 2020 8:03 pm
by bogs
<Seeing a light come on....>

Re: Resources and tutorials issue
Posted: Sun Mar 29, 2020 8:48 pm
by ajperks
Thank you for the most helpful guidance. How would a new Livecode user know that?
This must have changed from my early days here.
Re: Resources and tutorials issue
Posted: Sun Mar 29, 2020 9:11 pm
by bogs
Your very welcome
A new user to program (x) would probably not know all the ways they can find help from program (x), I didn't know when I started, I wager many others did / do not either, you find out just like I did, by visiting your friendly neighborhood forums
Dunno when your "early days" were, the IDE has been (more or less) in this state since 2.8 or so, prior to that, resources like this were listed in either 'tips' or 'tutorials', or (2.7, which was a change over version) you could download a video or pdf of the tip. 1.1.1 and 2.2 are 2 of my favorite versions for how the tips / documentation were formatted, outside of MC.