[REBOL] Re: to/make datatype!

2002-10-17 Thread Andrew Martin
Joel Neely wrote: > So far the most simplest way I've come up with to create a DATATYPE! value from a STRING! value is > > to-datatype: func [s [string!]] [ > first reduce load rejoin [ > "[" s either #"!" = last s ["]"] ["!]"] > ] > ] > > >> type? to-datatyp

[REBOL] Re: Rebol-Tex/Latex

2002-10-17 Thread Karl Robillard
On Wednesday 16 October 2002 11:48 pm, Arnaud Dutartre wrote: > Where can we get your versions ??? > > Arno:) If you really want it I could email it to you but I would recommend you use make-doc-pro which is still being developed. -Karl -- To unsubscribe from this list, please send an email t

[REBOL] Re: Field color change on error.

2002-10-17 Thread Romano Paolo Tenca
Hi all, > A font's style can be either none, 'bold, 'italic, 'underline or a > block with the styles in. (Or an empty block). However, neither of > these seem to work... > > set-font face style none > set-font face style 'none Set-font does not support none. It would be useful to do a l

[REBOL] Displaying ISO-8859-1 chars in View applications

2002-10-17 Thread jose
What do I need to do to be able to type characters with accents on a View application ? Thanks ___ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es -- To unsubscribe from t

[REBOL] Re: pop problems

2002-10-17 Thread Graham Chiu
read-til-dot: func [port buf][ while [(line: system/words/pick port/sub-port 1) <> "."] [ print line insert tail buf line insert tail buf newline ] buf ] Hi Scott, Yes, I was trying that out as well. Nothing obviously abnormal about the mail. I've put

[REBOL] Re: Field color change on error.

2002-10-17 Thread Gabriele Santilli
Hi SunandaDH, On Thursday, October 17, 2002, 9:18:24 PM, you wrote: Sac> -- At the best of times it'll eat up space in system/words That's true. Sac> -- At the worse, it lets the user type in code that will be executed -- try Sac> this in your entry field: People should use LOAD/ALL on the o

[REBOL] Re: Help function for contracts

2002-10-17 Thread Gabriele Santilli
Hi Jan, On Thursday, October 17, 2002, 10:21:34 PM, you wrote: >> x: copy reduce ['require pre] >> y: copy reduce ['ensure post 'result] JS> None. As I said I am in the process of learning and some of the idioms JS> are not there yet when I need them. :-) BTW, COPY should not be

[REBOL] Re: Field color change on error.

2002-10-17 Thread Gabriele Santilli
Hi Carl, On Thursday, October 17, 2002, 11:51:24 PM, you wrote: CR> block with the styles in. (Or an empty block). However, neither of CR> these seem to work... CR> set-font face style none CR> set-font face style 'none CR> so you'll have to use a method other than set-font. ie... H

[REBOL] Re: [OT] Rebol Icon

2002-10-17 Thread Jason Cunliffe
I just did a screen capture on Win98se and saved the image out in several formats. Help yourselves => http://koreartech.com/uploads/rebol_icon.ico http://koreartech.com/uploads/rebol_icon.gif http://koreartech.com/uploads/rebol_icon.png http://koreartech.com/uploads/rebol_icon.tif hth ./Jason --

[REBOL] Re: VID: layout problem

2002-10-17 Thread Carl Read
On 18-Oct-02, Robert M. Muench wrote: > Hi, I need some VID guru help for the following problem/questions: > 1. As I understand VID > field-layout: [ > lab "surname" surname: fld return > lab "lastname" lastname: fld return > ... > ] > Executing anywhere in my sc

[REBOL] Re: pop problems

2002-10-17 Thread G. Scott Jones
From: "Graham Chiu" ... > Interestingly it is again from the same person ( on a > yahoogroups mailing list ). So, there is something about > her messages that exposes a problem with the pop scheme. > > More debugging to do ... Hi, Graham, Isn't it fun to debug a difficult to reproduce problem? ;

[REBOL] Re: Field color change on error.

2002-10-17 Thread Carl Read
Hi Louis, On 18-Oct-02, Louis A. Turk wrote: > Hi Gabriele, Andrew, Anton, and Carl, > Many thanks for all the help. I now have almost everything I > want. Compositing everything all of you said I came up with this: > lab "email:" email: field [ > either email? attemp

[REBOL] Re: pop problems

2002-10-17 Thread Graham Chiu
An update on my pop problems. I've got another message that I can't download. Interestingly it is again from the same person ( on a yahoogroups mailing list ). So, there is something about her messages that exposes a problem with the pop scheme. More debugging to do ... -- Graham Chiu -- To

[REBOL] Re: Help function for contracts

2002-10-17 Thread Jan Skibinski
Gregg, > Is there a reason you're using two separate steps, rather than something > like this: > > x: copy reduce ['require pre] > y: copy reduce ['ensure post 'result] None. As I said I am in the process of learning and some of the idioms are not there yet when I need them. :-)

[REBOL] Re: Help function for contracts

2002-10-17 Thread Gregg Irwin
Hi Jan, Thanks! I'll have to make some time to check in out in depth. I'm a big fan of DbC, and have played around with some ideas myself. In CONTRACT, you're doing this: x: copy [require pre] x/2: pre y: copy [ensure post result] y/2: post Is there a reason you're using two sep

[REBOL] Re: Field color change on error.

2002-10-17 Thread Gregg Irwin
Hi Louis, << Also, why does this result in an error message instead of false? >> email? k ** Script Error: k has no value ** Near: email? k >> >> k is a word, and REBOL is evaluating it to find the value it references, to see if it is an email! value. If you give it an email val

[REBOL] Re: Field color change on error.

2002-10-17 Thread Gabriele Santilli
Hi Louis, On Thursday, October 17, 2002, 6:22:02 PM, you wrote: LAT> set-font face style 'normal ; <<< DOESN'T WORK set-font face style none Regards, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB:

[REBOL] Re: Field color change on error.

2002-10-17 Thread SunandaDH
Louis: > either email? attempt [load value] I'd caution against this use of 'load -- -- At the best of times it'll eat up space in system/words -- At the worse, it lets the user type in code that will be executed -- try this in your entry field: Rebol [quit] I think this line solves

[REBOL] Help function for contracts

2002-10-17 Thread Jan Skibinski
Hi, As an exercise in learning the basics of Rebol I made a little script supporting the Design By Contract. (Yes, I am aware of Maartens' contract.r) I uploaded it as file dbc.r to the library. The script provides, among few other things, the help' function which extends the standard help with not

[REBOL] Re: Field color change on error.

2002-10-17 Thread Louis A. Turk
Hi Gabriele, Andrew, Anton, and Carl, Many thanks for all the help. I now have almost everything I want. Compositing everything all of you said I came up with this: lab "email:" email: field [ either email? attempt [load value] [ face/colors: red

[REBOL] Re: How to get allocated ip number

2002-10-17 Thread Gabriele Santilli
Hi Goasampis, On Thursday, October 17, 2002, 10:03:31 PM, you wrote: GM> print read foo: rejoin [dns:// read dns://] If the hostname is set correctly, this should give you the correct address. Regards, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer Amigan -- AGI L'

[REBOL] Re: VID: layout problem

2002-10-17 Thread Gabriele Santilli
Hi Robert, On Thursday, October 17, 2002, 5:38:23 PM, you wrote: RMM> To get the variables into the block. I'm using to-set-path and not RMM> to-set-word because field can be a path too. But if it's only a word I don't think it would work. Also, I think LAYOUT does not support set-paths for sett

[REBOL] Re: [OT] Rebol Icon

2002-10-17 Thread G. Scott Jones
Hi, César, 32x32 versions follow (in REBOL image format). HTH and HINVACTTAIIHNHM (hope I've not violated a copyright; ten thousand apologies if I have; no harm meant. :-). --Scott Jones rebol-icon: make image! [32x32 #{ 00000000000000000000 000000

[REBOL] Re: VID: layout problem

2002-10-17 Thread Gregg Irwin
Hi Robert, << I'm using to-set-path and not to-set-word because field can be a path too. ...If I change to-set-path to-set-word everything works fine. >> If you use a string value (e.g. "a/b/c") TO SET-WORD! should work on it, but it does fail on true path values. Will that work for you with the

[REBOL] Re: Field color change on error.

2002-10-17 Thread Gregg Irwin
<< Attempt? ... >> Thanks for catching me Carl! That's what I get for posting late at night. :) Andrew beat me to a response though. Gotta love those mezzanines. --Gregg -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the q

[REBOL] Re: [OT] Rebol Icon

2002-10-17 Thread César Fraile
Hi Chris, > Hi César, > > > Yes, but at a bigger size: the best 48x48. Yesterday I asked me why > > Rebol.com deleted the favicon from their site. I don't know why Mozilla > > doesn't display it; other sites show their favicon correctly. Any way, > > thanks for the link. > > There is a 48x48 ima

[REBOL] Re: How to get allocated ip number

2002-10-17 Thread Goasampis Michel
Thanks a lot, all ! I'm surprise and grateful for the time you spend for this question. To "ping" a web server's port (Gabriele's answer) seems to be an efficient solution to get one active ip address among the possible interfaces a pc handles, and is, finally, appropriate to my purpose. Otherwise

[REBOL] VID: layout problem

2002-10-17 Thread Robert M. Muench
Hi, I need some VID guru help for the following problem/questions: 1. As I understand VID field-layout: [ lab "surname" surname: fld return lab "lastname" lastname: fld return ... ] Executing anywhere in my script will create two gl

[REBOL] Re: ANN: make-doc-pro-105

2002-10-17 Thread Robert M. Muench
> -Original Message- > From: [EMAIL PROTECTED] [mailto:rebol-bounce@;rebol.com] > On Behalf Of Anton > Sent: Thursday, October 17, 2002 6:58 AM > To: [EMAIL PROTECTED] > Subject: [REBOL] Re: ANN: make-doc-pro-105 > I tried reloading > > http://www.robertmuench.de/make-doc-pro.r > > from

[REBOL] Re: [OT] Rebol Icon

2002-10-17 Thread Christopher Ross-Gill
Hi César, > Yes, but at a bigger size: the best 48x48. Yesterday I asked me why > Rebol.com deleted the favicon from their site. I don't know why Mozilla > doesn't display it; other sites show their favicon correctly. Any way, > thanks for the link. There is a 48x48 image in that ico file. Re.

[REBOL] Re: Field color change on error.

2002-10-17 Thread Gabriele Santilli
Hi Louis, On Thursday, October 17, 2002, 6:55:23 AM, you wrote: LAT> I want the background of the field to turn red when an invalid email is LAT> enteredand also the font's color and style (yellow and bold). How do I LAT> do it? view layout [ email: field [ if not fi

[REBOL] Re: [OT] Rebol Icon

2002-10-17 Thread César Fraile
> Hi, > > > I'm searching for a rebol icon like the one rebol itself installs on the > > windows platform. Now I use Linux exclusively and I don´t have access to a > > Windows machine. Looking on Internet produces no result. If some one can > > send me the icon... > > This one? -- http://www.rebo

[REBOL] Re: Field color change on error.

2002-10-17 Thread Andrew Martin
Carl Read wrote: > >> ? attempt > No information on attempt (word has no value) > > Only in the beta REBOLs perhaps? >> source attempt attempt: func [ {Tries to evaluate and returns result or NONE on error.} value ][ if not error? set/any 'value try :value [get/any 'value] ] Perhap

[REBOL] Re: Field color change on error.

2002-10-17 Thread Carl Read
On 17-Oct-02, Gregg Irwin wrote: > Hi Louis, > Anton tackled the GUI part, so I'll just add a little note on > another way to validate the data. Instead of just looking for "@" in > the text, you could see if REBOL understands it as an email (i.e. > let it do the hard work for you). > view layo

[REBOL] Re: HTTP-Post Error

2002-10-17 Thread Graham Chiu
>It's been working beautifully in the past with some help >from you REBOL genious' but now occasionally I seem to >get a "HTTP/1.1 500 Internal Server Error". > >http://216.129.53.44:8080/cgi-bin/send_sm_rogers.new? Perhaps the server code is dying because of the extra "?" you've added here.

[REBOL] Re: Field color change on error.

2002-10-17 Thread Gregg Irwin
Hi Louis, Anton tackled the GUI part, so I'll just add a little note on another way to validate the data. Instead of just looking for "@" in the text, you could see if REBOL understands it as an email (i.e. let it do the hard work for you). view layout [ field [ print either email! =

[REBOL] Re: Rebol-Tex/Latex

2002-10-17 Thread Arnaud Dutartre
Where can we get your versions ??? Arno:) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Karl Robillard Sent: jeudi 17 octobre 2002 07:37 To: [EMAIL PROTECTED] Subject: [REBOL] Re: Rebol-Tex/Latex Bruno, RBook is not a wysiwyg editor. It was my own