set rect of fld f1 of cd c1 of wd w1 to rect of fld f2 of cd c2 of wd w2

Richard Gaskin ambassador at fourthworld.com
Fri Aug 26 14:27:38 EDT 2005


Stephen Barncard wrote:
> Thanks, Mark for those insights on the engine - the more we know how it 
> works, the more we can get out of rev!
> 
> sqb
> 
>>  > >   repeat while(x+1) < 10
>>
>>>  >   put word(x+1) of "This is a test"
>>>  >
>>>  >Although this is consistent, it still *looks* wrong to me... it 
>>> looks like
>>>  >"while" and "word" are functions in the example above. Is it just 
>>> me, or is
>>
>>  > >this a bug that has been in the engine for a long time?
>>
>> Mark.

An interesting exercise that can also have practical application is to 
play with the token chunk type, e.g.:

   get "put MyFunc(tSomeArray[tKey]) into fld 2"
   repeat for each token tToken in it
      put tToken &cr after tList
   end repeat
   put tList


Yields:

put
MyFunc
(
tSomeArray
[
tKey
]
)
into
fld
2


--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list