The best way is to create a parser. Have it check for the quotation
marks. Since you know the order of your info, you can set it up like
this:
on MouseUp
your netlingo from below
repeat with i = 1 to displaysinfo.length
if displaysinfo.char[i] = string(QUOTE) then
write your variable
end if
end repeat
end mouseup
You will also need to create some variables that keep track of how many
variables have been found, whether it is the opening or closing quotation
mark, and whther you are in between the quotation marks.
i.e.
quoteTrue = true if the text has passed the first quote, but not yet
reached the closing quote
loopCount = the # of times it has reached a closing quote (any quote
parsed while quoteTrue = true)
info1, info2, info# Variables that contain the text in between the quotes
hope that helps. I don't have director in front of me, so you may have to
tweak it a lot or a little.
Jason
On Mon, 29 Oct 2001, Phil Daniels wrote:
> hello
>
> i've created a .txt and placed it on a webserver with the text in a format i
> want director to read as a list
> here is what is on my .txt document.
>
> basic = [#Model:"Basic Computer",#Processor:"Quite
> Fast",#Motherboard:"Small"]
>
> Now i don't know if this is correct but i want director to downlaod this
> file and then i want to put values into different text boxes on my stage.
>
> i am getting the text file with this lingo:
>
> on mouseUp me
> netOpID=getNetText ("http//url/data.txt")
> displaysInfo = netTextResult( netOpID )
>
> end
>
> But how do i script this so that it will put say"basic computer" into a text
> area on the stage and "quite fast" into another text area with just one
> click of a button.
>
> thanks
>
> Phil
>
> [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!]
>
>
[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!]