Cant set field property from Multi-line Msg Box
Klaus on-rev
klaus at major.on-rev.com
Mon Oct 4 12:35:16 EDT 2010
Hi Joe,
Am 03.10.2010 um 01:07 schrieb Joe Lewis Wilkins:
> I should have done this originally; To clarify:
>
> This one works:
>
> repeat with k = 15 to 69
> repeat with i = 1 to the number of flds on cd k
> set the DontWrap of fld i of cd k to true
> end repeat
> end repeat
> beep
>
> This one doesn't:
>
> repeat with k = 15 to 69
> repeat with i = 1 to the number of flds on cd k
> set the TabOnReturn of fld i of cd k to true
> end repeat
> end repeat
> beep
This does work! But you did not exspect how it worked!
Check all these fields and you will find their custom property named "TabOnReturn" is set to true! :-D
You might want to set the "autotab" in your loop ;-)
A fact that Richard already mentioned below.
> Joe Lewis Wilkins
>
>
> On Oct 2, 2010, at 3:20 PM, stephen barncard wrote:
>
>> there are no property names with spaces.
>>
>> sqb
>>
>> On 2 October 2010 17:10, Joe Lewis Wilkins <pepetoo at cox.net> wrote:
>>
>>> Sorry, but I said "TAB on Return", which IS a field property.
>>>
>>> Joe Wilkins
>>>
>>> On Oct 2, 2010, at 2:56 PM, Richard Gaskin wrote:
>>>
>>>> Joe Lewis Wilkins wrote:
>>>>
>>>>> ...
>>>> In this case the actual property name is "autoTab".
!!!!!
>>>> The first thing I tell my clients to do when they begin learning Rev is:
>>>>
>>>> 1. Go to Preferences
>>>> 2. In the section with the heading "Property labels are:", click the
>>>> option labeled "Name of LiveTalk Property".
>>>>
>>>> Once that's done the Inspector provides reinforcement of the tokens
>>> you'll have to learn for scripting anyway.
>>>>
>>>> And without that, as you've found it just raises the learning curve.
>>>>
>>>> --
>>>> Richard Gaskin
>>>> Fourth World
>>>> LiveCode training and consulting: http://www.fourthworld.com
>>>> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>>>> LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
More information about the use-livecode
mailing list