Re: lingo-l How to put the QUOTE symbol into a string?
well, i just didn't read anyone explicating it like that, and maybe it's the teacher in me, or maybe i like this list best when it's educational or theoretical like that, and not just people writing code for each other. i knew *you* knew why you were iterating backwards, but maybe there are some lurkers for whom my comment was helpful. no offense intended. --bhakti Colin Holgate wrote: the key is iterating backwards. if you iterate forward 1 char at a time, and you replace one char, the quote, with a multi char string, the repeat loop gets mighty confused about where it is. the same thing can happen when you loop through a list, and change the list in the loop. do it backwards, and the extra characters are added at a point that's after the iteration point, so the next iteration of the loop deals with the correct char. -bhakti I'm confused, were you explaining this to someone? I already iterate backwards, for the reasons you said. -- [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!] -- R. Bhakti Klein Educational Software R D http://www.DLWorkshop.net Baritone, unaffiliated but open to suggestions... On Earth, you can only do little things; but you can do them with a lot of Love. -- Mother Theresa [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!]
Re: lingo-l How to put the QUOTE symbol into a string?
Maybe Colin's gone all 'sensitive' ? That could be the case. Sometimes I'm case sensitive. -- [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!]
Re: lingo-l How to put the QUOTE symbol into a string?
Just don't your get your ascii in a not. At 1:31 PM -0400 7/25/01, Colin Holgate wrote: Maybe Colin's gone all 'sensitive' ? That could be the case. Sometimes I'm case sensitive. -- [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!]
Re: lingo-l How to put the QUOTE symbol into a string?
the key is iterating backwards. if you iterate forward 1 char at a time, and you replace one char, the quote, with a multi char string, the repeat loop gets mighty confused about where it is. the same thing can happen when you loop through a list, and change the list in the loop. do it backwards, and the extra characters are added at a point that's after the iteration point, so the next iteration of the loop deals with the correct char. -bhakti, being slightly pedantic I'm confused, were you explaining this to someone? I already iterate backwards, for the reasons you said. -- [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!]
Re: lingo-l How to put the QUOTE symbol into a string?
Is there a way to achieve what I need? Try this: on convertQuote aField aString = the text of field aField temp = aString.char.count quotestring = quotequotequote repeat with i = temp down to 1 if char i of aString = quote then put quotestring into char i of aString end repeat return aString end put convertQuote(test) -- body background= quote images/bkg.jpg quote topmargin= quote 0 quote leftmargin= quote 0 quote marginwidth= quote 0 quote marginheight= quote 0 quote It isn't perfect, because of the space before the topmargin and leftmargin parts, but it might do for what you need. [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!]
Re: lingo-l How to put the QUOTE symbol into a string?
At 11:32 PM 7/22/2001 -0400, you wrote: Is there a way to achieve what I need? Try this: on convertQuote aField aString = the text of field aField temp = aString.char.count quotestring = quotequotequote repeat with i = temp down to 1 if char i of aString = quote then put quotestring into char i of aString end repeat return aString end It works great, and thanks a lot for simplifying my unnecessary long script. I learned a lot. Thanks! Regards, Changhsu Liu [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!]