command not send / puzzle

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

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: command not send / puzzle

Post by snm » Thu Jul 10, 2014 6:59 am

set the label ... ?

Marek

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

Re: command not send / puzzle

Post by Klaus » Thu Jul 10, 2014 12:01 pm

Hi Rob,

why do you not take a look into the dictionary under "label" to understand what that means?
That would have saved us some time.
The dictionary won't bite, I know that! 8)

Buttons have:
1. A NAME, use that to addess the button in scripts.
So using a short and descriptive name is a good idea!

2. A LABEL, which is what the USER will see on the card, so this can be a long as neccessary.

You are looking for Nr. 1 obviously.
But you will need to query "the SHORT name fo btn xyz"

To see why, create a button and add this script to see and believe:

Code: Select all

on mouseup
  put "The NAME of me:" & CR & the NAME of me & CR & "The SHORT name of me:" & CR & the short name of me into tAnswer
  answer tAnswer
end mouseup
Best

Klaus

Post Reply