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

[REBOL] Re: rebol script crashes when opened directly but not when done from she

From: rotenca::telvia::it at: 9-Dec-2003 20:21

Hi bryan,
> button "send"[ > insert telnet copy f1/text > port: wait [telnet/sub-port system/ports/input] > either port = telnet/sub-port [ > if none? str: copy telnet [break] > append f2/text str ][] > > ]
You cannot call wait from event code (like the action of a button). Instead you must insert the port to wait in system/ports/wait-list, adding to the port an awake function which makes the work. --- Ciao Romano