Just use to-url on the string: >> u: ask "type a url " type a url [EMAIL PROTECTED] == "[EMAIL PROTECTED]" >> type? u == string! >> uu: to-url u == [EMAIL PROTECTED] >> type? uu == url! > Of course that can all be put on one line: uu: to-url ask "Type a rul " Have fun! Russell [EMAIL PROTECTED] ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 04, 1999 8:38 PM Subject: [REBOL] [REBOL] Getting User Input into a variable > Hi, I'm quite new to the language and as I found great difficulty in > assigning user input to be a particular datatype. > > For instance, I checked out webfinder.r where there's a series with a > pre-determined list of urls for Rebol to fetch, but any attempts on my part > to put an Ask statement asking for user to input urls, then placing the > input into a series repeatedly resulted in the input becoming a 'string' > instead of a 'url'. I faced similar difficulties with files. Say I want to > prompt the user to input the filename he wants to save to. > > Perhaps I'm still thinking in traditional programming concepts, but I'm > stumped here. Any help would very much be appreciated. > > sincerely, > kelvin >
