3.0 Field numbering messed up

Joe Lewis Wilkins pepetoo at cox.net
Tue Oct 7 21:23:35 EDT 2008


Jim,

Thanks for the routine. I had already done something similar. It  
wasn't that big a deal. As I said, wrong side of the bed. Or my  
arthritis!

Joe Wilkins

On Oct 7, 2008, at 6:17 PM, Jim Ault wrote:

> Referring to objects using numbers as labels is a risky practice  
> since Rev
> will resolve numbers to mean the position in the order of fields,  
> buttons,
> other objects.
> (1 to the number of fields, regardless of layer number, but in the  
> layer
> 'order').
> --------- Reset the names of all the fields
> on setNameOfFields
>  repeat with x = 1 to the number of fields
>    put word 1 of the short name of field x into NM
>    if NM is a number then  --  only touches number-style fields
>       set the name of field x to NM & " F"
>    end if
>  end repeat
> end setNameOfFields






More information about the use-livecode mailing list