Offset function

Klaus Major k_major at os.surf2000.de
Sat Sep 14 08:47:01 CDT 2002


Hi Robert,

> Using Rev 1.5A7.1 or Rev 1.1.1
>
> With reference to transcript dictionary offset, I put example 3 into 
> the message box with and without the quotes and obtained the same 
> results.
>
> offset("bark","embarking")
> offset(bark,embarking)
>
> Are the quotes necessary?  If necessary, under what conditions?
>
> Thanks for any comments.

Maybe these 2 little scripts will answer your question.
See the difference ?
Hints: variables ;-)

on mouseUp
   put "dfdfdf" into bark
   put "xxxxxxxxx" into barking
   put offset(bark,embarking)
end mouseUp

### -> 0

on mouseUp
   put offset("bark","embarking")
end mouseUp

### -> 3

> Regards ... Bob

Regards


Klaus Major
k_major at os.surf2000.de




More information about the use-livecode mailing list