LiveCode tutorial text chunk
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
LiveCode tutorial text chunk
Hello All im following along in the tutorial section for the text chunk section(video 1 23:25)
and I keep getting a cant find card error on the (below) section
set the text of field “NoteText” of card “cardNoteEdit” to tNote
when i get rid of the code
"set the text of field 'NoteText' of card 'cardNoteEdit"
https://imgur.com/DT7SXC
and just have the code
go to card “cardNoteEdit”
https://imgur.com/9FxClw1
i dont get any errors so i know it has to be something wrong with my fields but im not sure what
ive already doubled checked and all my field names match up with whats in the script
i would add a picture of all this here but the board wont let me...
PS also does anyone know how to post images on this forum
and I keep getting a cant find card error on the (below) section
set the text of field “NoteText” of card “cardNoteEdit” to tNote
when i get rid of the code
"set the text of field 'NoteText' of card 'cardNoteEdit"
https://imgur.com/DT7SXC
and just have the code
go to card “cardNoteEdit”
https://imgur.com/9FxClw1
i dont get any errors so i know it has to be something wrong with my fields but im not sure what
ive already doubled checked and all my field names match up with whats in the script
i would add a picture of all this here but the board wont let me...
PS also does anyone know how to post images on this forum
Last edited by wanglucas on Thu Mar 26, 2020 3:20 am, edited 3 times in total.
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: LiveCode tutorial text chunk
Without a URL to the tutorial in question I can only guess about what's wrong, but given the odd naming style in the example code I'm wondering if:
...maybe should be:
Did you name the card? Is the name "cardNoteEdit", or "NoteEdit", or something else?
Code: Select all
go to card “cardNoteEdit”
Code: Select all
go to card “NoteEdit”
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: LiveCode tutorial text chunk
the forum wont let me post the link unfortunately ((video 1 23:25)
and yes the card name is correct
if i just have
go to card “cardNoteEdit”
the code works fine
and yes the card name is correct
if i just have
go to card “cardNoteEdit”
the code works fine
Re: LiveCode tutorial text chunk
Wanglucas,
We won't, as fourthworld said, know which video your talking about without a link. Even though you can't post a link such as
http://lessons.livecode.com/m/2592/l/12 ... omatically
You might be able to copy the link, paste it, and then make it less 'link like' by changing parts of it, like this -
[http:]lessons_livecode_com/m/2592/l/124649-show-or-hide-a-scrollbar-automatically
until the forum lets you post it.
As for your card names, try this.
open the message box
move your mouse cursor over the stack you are working with, but don't click, make sure the message box keeps the focus
type
hit ctrl + enter or the return key
paste the list that shows up in your next post.
We won't, as fourthworld said, know which video your talking about without a link. Even though you can't post a link such as
http://lessons.livecode.com/m/2592/l/12 ... omatically
You might be able to copy the link, paste it, and then make it less 'link like' by changing parts of it, like this -
[http:]lessons_livecode_com/m/2592/l/124649-show-or-hide-a-scrollbar-automatically
until the forum lets you post it.
As for your card names, try this.
open the message box
move your mouse cursor over the stack you are working with, but don't click, make sure the message box keeps the focus
type
Code: Select all
put the cardNames of the mouseStack
paste the list that shows up in your next post.
Re: LiveCode tutorial text chunk
thats not the same lesson im currently on
i updated my original post with imgur "links" to hopefully make my question more clear
i updated my original post with imgur "links" to hopefully make my question more clear
Re: LiveCode tutorial text chunk
Um, what I asked you to do is *not* part of a lesson, it is a way to have LiveCode itself tell us what is in your stack, in a manner you can copy and paste right here.
Until you have 10 posts, you will not be able to attach or post a link, not even to images on imgur.
Until you have 10 posts, you will not be able to attach or post a link, not even to images on imgur.
Re: LiveCode tutorial text chunk
i understand now
i tried the select all command in my message box and got this error
Message execution error:
Error description: Chunk: error in object expression
Hint:
i tried the select all command in my message box and got this error
Message execution error:
Error description: Chunk: error in object expression
Hint:
Re: LiveCode tutorial text chunk
also i reached 10 post and i have updated the first post with links to the screenshots so hopefully that makes it easier
Re: LiveCode tutorial text chunk
Well it should make it easier, but the only one that came up was the second one heh. From that one, I can see the card your trying to reach exists, at least.
In your next post, click the 'Attachments' tab below the edit box or just drag your picture into the box your typing in, and attach it to the post so we can be sure to see it.
Not sure I understand where the 'select all' thing came from, or what you were trying to do there. If your talking about how to copy the text out of the message box, you just highlight it with your mouse and copy it, either with the Os keyboard shortcut for copy, or by going to the Lc menu -> edit -> copy.
Then you paste it here. If you don't understand what I mean, let me know and I will make a video demo for you, it is a very handy way to do things, better than a screen shot sometimes.
In your next post, click the 'Attachments' tab below the edit box or just drag your picture into the box your typing in, and attach it to the post so we can be sure to see it.
Not sure I understand where the 'select all' thing came from, or what you were trying to do there. If your talking about how to copy the text out of the message box, you just highlight it with your mouse and copy it, either with the Os keyboard shortcut for copy, or by going to the Lc menu -> edit -> copy.
Then you paste it here. If you don't understand what I mean, let me know and I will make a video demo for you, it is a very handy way to do things, better than a screen shot sometimes.
Re: LiveCode tutorial text chunk
Hi wanglucas,wanglucas wrote: when i get rid of the code
set the text of field 'NoteText' of card 'cardNoteEdit'
and just have the code
go to card “cardNoteEdit”
i dont get any errors so i know it has to be something wrong with my fields....
shooting a bit on the dark and considering your namings are fine;
could you try to modify your *culprit* line of code:
Code: Select all
set the text of field 'NoteText' of card 'cardNoteEdit of stack 'YourStackName'
Take care,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: LiveCode tutorial text chunk
Hello All im following along in the tutorial section for the text chunk section(video 1 23:25)
and I keep getting a cant find card error on the (below) section
set the text of field “NoteText” of card “cardNoteEdit” to tNote
when i get rid of the code
"set the text of field 'NoteText' of card 'cardNoteEdit"
and just have the code
go to card “cardNoteEdit”
i dont get any errors so through process of elimination i know that means the card itself is fine but something is wrong with the fields
ive already doubled checked and all my field names match up with whats in the script
i would add a picture of all this here but the board wont let me...
and I keep getting a cant find card error on the (below) section
set the text of field “NoteText” of card “cardNoteEdit” to tNote
when i get rid of the code
"set the text of field 'NoteText' of card 'cardNoteEdit"
and just have the code
go to card “cardNoteEdit”
i dont get any errors so through process of elimination i know that means the card itself is fine but something is wrong with the fields
ive already doubled checked and all my field names match up with whats in the script
i would add a picture of all this here but the board wont let me...
Re: LiveCode tutorial text chunk
so i changed two things
i specified which stack the card belongs to
and i changed the card name and field name
still got an error..
i specified which stack the card belongs to
and i changed the card name and field name
still got an error..
Re: LiveCode tutorial text chunk
also if you notice in the above picture the field and card parameters that are in quotes are still in neutral black color
but in the video im following along with, his parameters are blue
could this be related to the error im getting
the video in question
but in the video im following along with, his parameters are blue
could this be related to the error im getting
the video in question
Re: LiveCode tutorial text chunk
Ok, you can drop: of stack ...
Not mandatory in your case.
However, the quotes in your lines are wrong !
Check carefully the quoting for your field and card name
and the one for your stack name; not the same. Guess, re-editing these 2 lines would make a difference; at least hope so.
Regards,
Thierry
Not mandatory in your case.
However, the quotes in your lines are wrong !
Check carefully the quoting for your field and card name
and the one for your stack name; not the same. Guess, re-editing these 2 lines would make a difference; at least hope so.
Regards,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!