Code: Select all
set the visible of field 1 to true
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
set the visible of field 1 to true
Code: Select all
on mouseup
   put "1" into fld 1
   put "2" into fld 2
   put "3" into fld 3
end mouseupCode: Select all
set the layer of fld 1 to 2
 ). I can't say I like the way the number is used for the lessons without an explanation of it. I wonder if the numbers correspond to the object layer list for the stack. Oh well... LiveCode is SO different from Python. But at least I now have an easy crossplatform app environment to work with
 ). I can't say I like the way the number is used for the lessons without an explanation of it. I wonder if the numbers correspond to the object layer list for the stack. Oh well... LiveCode is SO different from Python. But at least I now have an easy crossplatform app environment to work with  
 
 Consistency is important. When I'm naming something, I use an old technique that tells me right away what the object is by pre-pending 3 letters of the object type to the object goal, in camel case.
Code: Select all
if characters 1-3 of the short name of control x = "txt" then put empty into control x
// clears the field


 Thanks for your responses.
 Thanks for your responses.The dictionary is definitely a great place to start. I read through the "layer" entry a couple times, but I probably never would have thought to search "number". I'd say that "number" should be added in the related section of the "layer" entry in the same way that "layer" IS in the related section of the entry for "number".
That really is good advice, but I would say that if you really want to use a number, spell it out, i.e. [txtOne]. Otherwise, only use them to differentiate when you hit a naming block, like [txtName1][txtName2] etc.
Isn't it?ClipArtGuy wrote: ↑Wed Aug 29, 2018 10:37 pmThe dictionary is definitely a great place to start. I read through the "layer" entry a couple times, but I probably never would have thought to search "number". I'd say that "number" should be added in the related section of the "layer" entry in the same way that "layer" IS in the related section of the entry for "number".
Of course, my dictionaries are quite oldAnd the Lc Dictionary wrote: layer
Type: property
Syntax:
set the layer of object to {layerNumber | top | bottom}
Synonyms:
partNumber
See Also: number Function, control Keyword, ungroup Command, group Command, mouseControl Function, intersect Function, tabGroupBehavior Property, relayerGroupedControls Property, relayer Command
 So I went and looked in the newer one...
All joking aside, though, yes the dictionary and help guides *are* great to look in but unless you have some idea of how the language works, they can also be an exercise in frustration
 So I went and looked in the newer one...
All joking aside, though, yes the dictionary and help guides *are* great to look in but unless you have some idea of how the language works, they can also be an exercise in frustration  If you get stuck for the words to look for, I'd say feel free to drop in and ask (lord knows I did
 If you get stuck for the words to look for, I'd say feel free to drop in and ask (lord knows I did  ). Likely as not, someone else has asked the self same questions and will guide you along
 ). Likely as not, someone else has asked the self same questions and will guide you along 

 Indeed it is. Not sure how I missed it. I must have only looked at the properties, as that's kind of what i expected it was.
  Indeed it is. Not sure how I missed it. I must have only looked at the properties, as that's kind of what i expected it was.Changing the layer of an object also changes its number property.
Why would you have to be forgiven? Of course it says that, which is why I said way up there -ClipArtGuy wrote: ↑Wed Aug 29, 2018 11:39 pmEDIT: Which I guess I could be forgiven for, considering the last line of the description saysChanging the layer of an object also changes its number property.
...and so we've come full circle
 
  )
 )
Code: Select all
on tabkey
  select text of fld "nextFieldDesired"
  end tabKey