Getting some chars from a string?

Phil Davis revdev at pdslabs.net
Tue Feb 9 13:18:52 CST 2010


Hi Richmond,

Here's another way:

on mouseEnter
     put myNumber(the short name of me)
end mouseEnter

function myNumber pNOMEN
     set the itemDelimiter to "."
     return char 2 to -1 of item 1 of pNOMEN
end myNumber

Phil

On 2/9/10 11:01 AM, Richmond Mathewson wrote:
> I have a series of image names for the type:
>
> f#.png
>
> where # can be a number anywhere between 1 and 6 figures long.
>
> what I need is to extract the number from the image name.
>
> SO, starting with
>
> on mouseEnter
>   put the short name of me into NOMEN
>
> ................?

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net




More information about the use-livecode mailing list