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 mouseup
Code: Select all
set the layer of fld 1 to 2
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
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
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