Forcing a variable to evaluate as an object reference
    David Glasgow 
    david at dvglasgow.wanadoo.co.uk
       
    Tue Sep 12 14:24:00 EDT 2006
    
    
  
      	  Mark Schonewille suggested:
on yeschangeit
    global glanguage
    put "changing it now"
    repeat for each line i in field "langfields"
      -- put "field " & i into twhere
      get the Language[glanguage] of fld i
      put it into field i
    end repeat
end yeschangeit
Looking at variables, it fails on
get the Language[glanguage] of fld i
but reports:
executing at 7:14:33 PM
Type	Chunk: no such object
Object	Assessment Language
Line	put it into field (i)
Hint	"Inst1" of card "Ranking" of this Stack
My first version though,
     put "field " & i into twhere
     get the Language[glanguage] of twhere
  definitely retrieves the text required, so what's that all about then?
Must go to pick a child up from Brownies or Cubs or something.  Damn! 
just when I'm getting to grips with a problem.
Best Wishes,
David Glasgow
Carlton Glasgow Partnership
http://www.i-psych.co.uk
    
    
More information about the use-livecode
mailing list