A cool technique & damn fast-

Read your string in via FileIO.  Then use the ScriptText procedure.  Look in
Director's help.

BTW - I have not checked this script if it's Ok - it's just a rough guide.

on hReadFile
  tScript=QUOTE & "on hGetFileIOdata" & QUOTE & RETURN & ?
          QUOTE & "  tList ="&& tFileString & RETURN & ?
          QUOTE & "  return tList" & RETURN & ?
          QUOTE & "end"

  tMember = new(#script)
  tMember.name = "DataScript"
  tMember.scriptType = #movie
  tMember.scriptText = tScript  -- director automatically compiles this
script
  tData = hGetFileIOdata ()
end

Note: When saving your string watch out for QUOTE & ENTER characters.
Simple search and replace routine will fix this.  Of course it will not work
for values such as objects.

Cheers,

Tom.



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to