Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Weird Error

From: mattsmac:hotma:il at: 27-Oct-2003 14:53

The script I have going logs onto a server using Rugby. As an error check, if the client cannot connect to the server, I prompt the user to enter a new server IP address in a request/text box. Then I take this new IP address (in string form) and put it into the string "mainserver: context get-rugby-service tcp://" serverip ":8000" where serverip is the ip-string that was just obtained. Then I do that string. Basically, all this seems to work fine, but after that, I have an object I made to hold some message fields such as sender, date, and subject, all of which are read from an ODBC database. When I try to change the "." to ":" in the date field using tempmsg: make msg_info [ msgid: msg/1 from: msg/2 fromid: msg/3 subject: msg/4 date: copy/part msg/5 (length? msg/5) - 5 ] replace/all tempmsg/date "." ":" i get the error code ** Script Error: Cannot use path on logic! value ** Where: replace ** Near: target: change/part target :replace len This only happens when I change that IP address. If the default IP address works, then nothing goes wrong. And the tempmsg object gets populated properly also. So it's not like I'm not getting a database connection or anything easy like that. Anyone have any ideas? Matt