Resources and tutorials issue

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
ajperks
Posts: 66
Joined: Sat Sep 06, 2014 3:38 pm

Resources and tutorials issue

Post by ajperks » Tue Mar 24, 2020 1:41 pm

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.

Klaus
Posts: 11572
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Resources and tutorials issue

Post by Klaus » Tue Mar 24, 2020 2:06 pm

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?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4140
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Resources and tutorials issue

Post by richmond62 » Tue Mar 24, 2020 3:36 pm

I think the OP is missing something with his/her browser as I certainly have no problem
copying from that page.

ajperks
Posts: 66
Joined: Sat Sep 06, 2014 3:38 pm

Re: Resources and tutorials issue

Post by ajperks » Tue Mar 24, 2020 5:13 pm

Thank you, I suspect it is the Edge browser in win 10.
I will try another way.

ajperks
Posts: 66
Joined: Sat Sep 06, 2014 3:38 pm

Re: Resources and tutorials issue

Post by ajperks » Tue Mar 24, 2020 6:19 pm

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.

screenshot.jpg

Klaus
Posts: 11572
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Resources and tutorials issue

Post by Klaus » Tue Mar 24, 2020 7:10 pm

Please provide a link!

bogs
Posts: 4348
Joined: Sat Feb 25, 2017 10:45 pm

Re: Resources and tutorials issue

Post by bogs » Tue Mar 24, 2020 7:21 pm

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:
aPic_copyScript.png
Choices choices choices...
Image

Klaus
Posts: 11572
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Resources and tutorials issue

Post by Klaus » Tue Mar 24, 2020 7:56 pm

Resource center, AHA! :D

bogs
Posts: 4348
Joined: Sat Feb 25, 2017 10:45 pm

Re: Resources and tutorials issue

Post by bogs » Tue Mar 24, 2020 8:03 pm

<Seeing a light come on....> :D
Image

ajperks
Posts: 66
Joined: Sat Sep 06, 2014 3:38 pm

Re: Resources and tutorials issue

Post by ajperks » Sun Mar 29, 2020 8:48 pm

Thank you for the most helpful guidance. How would a new Livecode user know that?
This must have changed from my early days here.

bogs
Posts: 4348
Joined: Sat Feb 25, 2017 10:45 pm

Re: Resources and tutorials issue

Post by bogs » Sun Mar 29, 2020 9:11 pm

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 :D

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.
Image

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”