Kevin, note that I create a new variable 'nVar' in the loop, so you shouldn't be doubling anything up.
My repeat loop obviously assumes that the extra char is at the beginning of every line, not just some of them.


An alternative would be to use the replace function, as others have noted, but if you don't know what the square is, then you'd have to find out, which you could do by pasting one of them from your field into this line in the message box:

put charToNum("paste the char here") - remember to put the character in quotes
This will give you a number which you can then use:


replace numToChar(the number you got) with empty in tVar


Cheers,

Mark

On 15 Mar 2005, at 02:45, Kevin J wrote:

Not only that it repeats the entire page but it does get rid of he box
thing the second time around.


On Mon, 14 Mar 2005 19:36:00 -0500, Frank D. Engel, Jr. <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Won't that delete the first character you retrieve?

On Mar 14, 2005, at 7:08 PM, Mark Smith wrote:

on mouseUp
  open socket "theseahaven.com:5500"
  read from socket "theseahaven.com:5500" for -1
  put it into tvar
  repeat for each line L in tVar
    put char 2 to -1 of L & cr after nVar
  end repeat
  delete last char of nVar --- clear trailing cr
  put nVar in to field 1
end mouseUp

_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to