sending focus to next field

Richmond richmondmathewson at gmail.com
Mon Jun 18 14:02:41 CDT 2012


On 06/18/2012 09:42 PM, J. Landman Gay wrote:
> On 6/18/12 1:09 PM, Richmond wrote:
>
>> Tried this and had NO JOY:
>>
>> on mouseUp
>>    put the id of the focusedObject into fOB
>> repeat until control id fOB is a field
>>    put (fOB + 1) into fOB
>> end repeat
>>    focus on fld id fOB
>> on mouseUp
>>
>> the 'repeat' line "threw a bluey" (is: bad validation type)
>>
>> replaced 'is' with '=' . . . same old sh*t.
>>
>> What am I missing? "
>>
>> and am still waiting for a reply that might allow me to lever my
>> original solution.
>
> The problem is that the syntax you're using isn't supported. The "is a 
> field" syntax only checks for existence. It can't be used to identify 
> if a control is of a particular type.
>

That's an awful pity.

How does one differentiate between control types?




More information about the use-livecode mailing list