sending focus to next field

Bob Sneidar bobs at twft.com
Mon Jun 18 14:09:45 CDT 2012


Also it seems to me that loop will either blow up when it hits on a control id that doesn't exist, or else it will repeat forever when it exceeds the highest control id of the objects on the card. Not sure which, sorry. 

Bob


On Jun 18, 2012, at 11:42 AM, 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.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list